NestJS backend for cineHub
The backend API for cineHub
- Have node and npm installed
- Have a mySQL server installed and running, with a database nammed "cinehub"
- Create a .env file, editing this example :
DATABASE_URL="mysql://db_user:db_password@db_host:db_port/cinehub"
DATABASE_PROVIDER="mysql"
db_user & db_password : the user and password you created during or after mysql server intallation db_host & db_port : host and port of the mySQL server ( default: localhost:3306 )
- run in terminal :
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Can be found at /api