Skip to content

deveshprasad/Social

Repository files navigation

Social

Advanced Web Development Project

Website Live : https://dry-ravine-57756.herokuapp.com/

110807962-9113a600-82a9-11eb-8732-5fdc8ac85597

2




## Tech Stack-

HTML5

CSS3

EJS template engine

NodeJS

Express.js

Mongoose

MongoDB

Environment Setup for local use-

  • Drop a ⭐ on the GitHub repository.




  • 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.
    • Run this command when inside the root directory to make a .env file.
    touch .env
    
    • Now add this to the .env file
    SECRET_KEY = Mail Me At : [email protected] (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.

Some useful Mongo DB commands if you are using the terminal instead of the GUI-

show dbs
use db <db name>
show collections
<db name> .find()

Maintainer ✨


Devesh Prasad

💻📖 🚧

1

110808349-e780e480-82a9-11eb-9b41-81cbab50c7fa