This project is a web application which you can use to browse different restaurants and see recommendations.
First you need to set MongoDB on your local system. Instructions here -> https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/
Then install Node.js in you local system with command:
sudo apt install nodejs
- Clone the repo
git clone https://github.com/FelixWeiss98/WebDevTuDublinProjectReworked.git
- Install node modules into
./server
npm install
- Install node modules to client in
./
npm install
- Instructions how to use Visual studio code with MongoDB -> https://code.visualstudio.com/docs/azure/mongodb
Populate database with file:
dbCreate.mongodb
- Set environment variables in
server/.env
DB_USERNAME=user // db login username DB_PASSWORD=password // db login password PORT=3003 // Server port SECRET_TOKEN=shhh // JWT secret hash TOKEN_EXPIRE=1h // JWT expiration time
- Run server in
./server
npm start
- Run client in
./
npm start