- Run
npm install
in the root of the project to install server dependencies - Change into the client directory and run
npm install --legacy-peer-deps
- Change back into the root of the project and run
npm run dev
to start the server - Access the application at
localhost:3000
in your browser
Important:
The credentials for the Mongo Atlas DB in dev.js
are read only. If you attempt to log in without first adding your own connection string (covered later in the course) you will see an error: [0] MongoError: user is not allowed to do action [insert] on [advnode.users]
-
first install brew package manager if not installed (visit the official site of brew to install based on the os)
-
To install redis in our local machine,
brew install redis
- To start redis using brew,
brew services start redis
- To Check redis server is running,
redis-cli ping
- To stop redis server
brew services stop redis
- To restart redis
brew services restart redis