To use peoject, you need to download entire repository and cd to project you want to use. Then, following these step to start the project
-
With bootstrap project: install
live serverextension if you use Visual Code and use this extension to run project. -
With 2 front-end project (contactbook-fe, project-movie-frontend):
- Run
npm installto install necessary packages - Run
npm run devto start
- Run
-
With 2 back-end project (contactbook-be, project-movie-backend):
npm installto install necessary package- Import sql file to mysql database
- Add .env file to the root of project with these config
PORT=3000 DB_HOST=localhost DB_PORT=3306 DB_USER={user database} DB_PASS={password of database} DB_NAME={name of database} - Run
npx knex seed:runto run seed file for inserting data to database. - Run
npm startto start the server