- Please install mongodb on your pc;
- In your PC create folder and name it mongodb move into it and create folder data (if haven't already done so) this will store all databases of your mongodb.
- Then cd to mongodb.
- Run following command in the terminal.
mongod --dbpath=data --bind_ip 127.0.0.1
- This will start mongo server to serve up data from and into data folder.
Make .env
folder in root directory of this project and enter the following values
MONGO_USER=<your_user>
MONGO_PASSWORD=<your_password>
MONGO_DB=poogle
Run following command to open server in nodemon.
npm run dev
Now run following commands in the terminal in the root directory of this project:
npm install
npm start
. To start the server using nodemon, you can usenpm run dev
instead- Open a new terminal and run
mongo
This will open mongo REPL shell. You can use commandshow dbs
This will show you a database as "poogle-api". This will be database for our project ..
Frontend: https://github.com/bhaveshkumarpassi/Poogle
Give a ⭐️ if you liked the project!