/learn-react

A Simple ReactJS app for learning react.

Primary LanguageJavaScript

learning-react

Linkedin Course's Github Repository

Firebase: https://console.firebase.google.com/

For running mongodb locally:

  1. mongod -dbpath <db-storage-path>
  2. Open a new terminal instance and create a new DB in mongosh
use <db-name>
db.<collection-name>.insertMany(
    [
        {
            name: 'learn-react',
            upvotes: 0,
            comments: [],
        },
        {
            name: 'learn-node',
            upvotes: 0,
            comments: [],
        },
        {
            name: 'mongodb',
            upvotes: 0,
            comments: [],
        }
    ]
)
db.articles.find({})
.exit
  • Change server so runtime can tell server the PORT to listen on.

  • Host MongoDB on cloud!

    Add username and password in .env. and change connection string!

  • Insert some data in MongoDB Atlas.

    Click on Connect and Connect with shell!

    Insert data from mongosh.

  • Deploy backend on render and frontend on netlify.