Advanced Web Development Project
Advanced Web Development Project
Website Live : https://dry-ravine-57756.herokuapp.com/
1)
Drop a on the GitHub repository.
Download and install a code/ text editor.
Download Node Js and npm(Node package manager) (when you download Node, npm also gets installed by default)
Mongo DB community editition is free and a great software in order to work with MongoDB applications. Download Mongo DB community editition
Robo 3T is a desktop graphical user interface (GUI) for Mongo DB. It can help to skip running all the Mongo DB commands manually every time we want to access the data. Download Robo 3T (optional)
Clone the repository by running command
git clone https://github.com/ <your user-name> /Social.git
in your git bash.
Run command cd Social
.
Run this command to install all dependencies for the project.
npm install
Adding secret key for JWT auth.
.env
file.
touch .env
.env
file
SECRET_KEY = Mail Me At : deveshprasad577@yahoo.com (I will contact you in the next 12hrs)
URL = mongodb://localhost:27017/SocialDB
Testing : Run this command on your terminal/ bash to start the Mongo server on port 27017(default).
mongod
Run this command to start the project.
npm run start
Run this command to start the project as a developer.
npm run dev
Open link to view the website in your browser window if it doesn’t open automatically.
http://localhost:3000/
You can learn more about EJS template engine and its syntax to know how we can use it inside our HTML using the documentation
Now you are all set to use this project.
show dbs
use db <db name>
show collections
<db name> .find()
Devesh Prasad 💻📖 🚧 |
2)