项目作者: deveshprasad

项目描述 :
Advanced Web Development Project
高级语言: EJS
项目地址: git://github.com/deveshprasad/Social.git
创建时间: 2021-03-11T18:03:23Z
项目社区:https://github.com/deveshprasad/Social

开源协议:

下载


Social

Advanced Web Development Project

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

1)

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 :star: 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

    1. 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.

    1. npm install


  • Adding secret key for JWT auth.

    • Run this command when inside the root directory to make a .env file.
      1. touch .env
    • Now add this to the .env file
      1. SECRET_KEY = Mail Me At : deveshprasad577@yahoo.com (I will contact you in the next 12hrs)
      2. URL = mongodb://localhost:27017/SocialDB

  • Testing : Run this command on your terminal/ bash to start the Mongo server on port 27017(default).

    1. mongod


  • Run this command to start the project.

    1. npm run start
  • Run this command to start the project as a developer.

    1. npm run dev


  • Open link to view the website in your browser window if it doesn’t open automatically.

    1. 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-

  1. show dbs
  2. use db <db name>
  3. show collections
  4. <db name> .find()

Maintainer ✨






Devesh Prasad

💻📖 🚧

1

2)

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