- Clone the repository:
git clone
. - Install the recommended VSCode Extensions.
- Disable the @builtin Typescript Language server.
npm i
.- Prisma
- To setup prisma you need to create an
.env
file in the root directory of the project. - Insert a new line in the file
DATABASE_URL="file:../dev/database.db"
. npx prisma generate
Generates the typescript from the schema.npx prisma db push
Creates the tables in the database.
- To setup prisma you need to create an
- CDN
- Add a new line to the
.env
,CDN_PATH="./cdn/"
to set the folder for the cdn assets to be saved.
- Add a new line to the
npm run dev
.- Open the browser
localhost:3000/dev
. - Click
Refresh Database
to create some data in the database. - Creating the database only needs to be done once.
-
- The frontend TS/JS framework which makes the webpage reactive.
- We are using the composition API, ensure the docs reflect this.
-
- A meta-framework which creates universal applications, producing both the client-side and server-side code.
-
- The databse ORM.
-
- A superset of JS which adds static type checking.
-
- A superset of CSS which allows for compile time extensions and features to CSS.
-
- The Javascript runtime environment that the server will be running on.
-
- A package manager for Javascript.
-
- A manager / installer for Node & npm and managing the installed versions.
- Clone the repo on the server.
- Ensure the
prisma/schema.prisma
datasource provider is set tomysql
- Create a .env with the required and relevant paths.
- Run
npm i && npx prisma generate && npx prisma db push && npm run build
. - Move the
.output
folder and run again with the environment variables set.