Skip to content

lborocs/22cob290-part2-team-07

Repository files navigation

Devloper Environment

  1. Clone the repository: git clone.
  2. Install the recommended VSCode Extensions.
  3. Disable the @builtin Typescript Language server.
  4. npm i.
  5. Prisma
    1. To setup prisma you need to create an .env file in the root directory of the project.
    2. Insert a new line in the file DATABASE_URL="file:../dev/database.db".
    3. npx prisma generate Generates the typescript from the schema.
    4. npx prisma db push Creates the tables in the database.
  6. CDN
    1. Add a new line to the .env, CDN_PATH="./cdn/" to set the folder for the cdn assets to be saved.
  7. npm run dev.
  8. Open the browser localhost:3000/dev.
  9. Click Refresh Database to create some data in the database.
  10. Creating the database only needs to be done once.

Documentation

  • Vue 3

    • The frontend TS/JS framework which makes the webpage reactive.
    • We are using the composition API, ensure the docs reflect this.
  • Nuxt 3

    • A meta-framework which creates universal applications, producing both the client-side and server-side code.
  • Prisma

    • The databse ORM.
  • TypeScript

    • A superset of JS which adds static type checking.
  • Sass / Scss

    • A superset of CSS which allows for compile time extensions and features to CSS.
  • Node

    • The Javascript runtime environment that the server will be running on.
  • npm

    • A package manager for Javascript.
  • NVM

    • A manager / installer for Node & npm and managing the installed versions.

Deployment

  1. Clone the repo on the server.
  2. Ensure the prisma/schema.prisma datasource provider is set to mysql
  3. Create a .env with the required and relevant paths.
  4. Run npm i && npx prisma generate && npx prisma db push && npm run build.
  5. Move the .output folder and run again with the environment variables set.

About

22cob290-part2-team-07 created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published