- node: v18+
- Make sure your
.env
on bothclient
andserver
has all necessary secrets - Run
docker-compose up
from project root directory - Backend and Client now availabe on port 4000 and 8000 respectively
- Navigate to
client
- Add
.env
with necessary secrets - Run
yarn
ornpm install
to install necessary packages - Run
yarn dev
ornpm run dev
to start development server
- Navigate to
server
- Add
.env
with necessary secrets - Run
yarn
ornpm install
to install necessary packages - Run
yarn dev
ornpm run dev
to start development server
First of all login as superuser mongosh
- Create a new database (
eSandesh
recommended) 1.1use eSandesh
- Create a proper user ('eSandesh' recommended) with proper role as
2.1
db.createUser({user: 'eSandesh', pwd: passwordPrompt(), roles: [{role: 'readWrite', db: 'eSandesh'}]})
- Enable
authorization
in/etc/mongodb.conf
underSecurity
- Then fill corresponding credentials in
.env