CS359 End Semester Project
- Clone the repository
$ git clone https://github.com/HumanChwan/ChatGeePeeTee- Move into the repository
$ cd ChatGeePeeTee- Move into the
backendfolder.$ cd backend - Install required packages
$ yarn install - Create a file
.env, with the following contents:PORT=5000 CLIENT_URL=<enter the frontend dev server url> NODE_ENV="development" # would be subject to change # Database Settings DATABASE_URL="mysql://<url-encoded USERNAME>:<url-encoded PASSWORD>@<HOSTNAME>:<PORT>/<DATABASE>" TOKEN_SECRET="some-super-secret-string"
- Install MySQL server and MySQL Workbench
- Create a Database as per the URI set in
.env - Apply migrations to database by running the following command:
$ yarn run prisma migrate dev - Run the application using:
$ yarn run dev