/dsc-final

Mini Social media app like platform where you can signup and login and then post anything that is in your mind

Primary LanguageJavaScript

Visit our website here

TwitterClone

Mini social media app(like twitter) that lets the user signup, login, and then post anything on their mind.

Twitter Clone

Create an Account Using Email Id and Password

Twitter Clone

Tech-Stacks:




You can contribute by following below set of instructions

Environment Setup-
  • 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)

  • Fork the repository and then clone it from forked copy.

  • Clone the repository by running command

git clone https://github.com/ <your user-name> /dsc-final.git

in your git bash.

  • Run command cd dsc-final.

  • Run this command to install all dependencies for the project.
npm install

All the current dependencies -

    "body-parser": "^1.19.0",
    "dotenv": "^8.2.0",
    "ejs": "^3.1.5",
    "express": "^4.17.1",
    "express-session": "^1.17.1",
    "mongoose": "^5.10.3",
    "mongoose-findorcreate": "^3.0.0",
    "nodemailer": "^6.4.11",
    "passport": "^0.4.1",
    "passport-google-oauth20": "^2.0.0",
    "passport-local-mongoose": "^6.0.1",
    "url": "^0.11.0"

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

  • Run this command to start the project on local host 3000.
npm start

  • 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()

Note

  • Get connection string from Mongo Atlas by creating a cluster or you can also use your locally installed mongodb.
  • You can click here to learn how to connect atlas to you project.
  • Create a new file named .env in the Backend folder and copy the format of .env.example file
  • Paste the connection string in the .env file in the MONGODB_URI variable.