This is a Next.js project bootstrapped with create-next-app
.
The backend is built with Prisma with a MySQL flavor.
1.) Install all dependencies:
npm install
# or
yarn install
2.) Get the .env file from the ALTDSI discord channel in the pinned messages
3.) Replace the username and password of your MySQL server to the DB_URL variable in the .env file
- Format: DB_URL=mysql://[username]:[password]@localhost:3306/shore
- Example: DB_URL=mysql://root:1234@localhost:3306/shore
4.) Run all the database migrations to build the backend:
npm run migrate:dev
# or
yarn migrate:dev
5.) Lastly, run the development server:
npm run dev
# or
yarn dev
- Update schema.prisma file
- npx prisma generate
- npx prisma migrate dev --name
- npm run migrate:dev
When making changes to schema.prisma, make sure to run migrations again for changes to take effect in the database and the frontend client library.