> mongod --port 27011 --dbpath "your 1st db path" --bind_ip 127.0.0.1 --replSet myReplSet
> mongod --port 27012 --dbpath "your 2nd db path" --bind_ip 127.0.0.1 --replSet myReplSet
Configure replication in mongodb
> mongosh --port 27012
> rs.initiate({_id: "myReplSet", members: [ { id: 0, host: "localhost:27012" }, { id: 1, host: "localhost:27011"}] } )
> cd servers
> waitress-serve --host 127.0.0.1 model4:app
> npm run mongo1
> npm run mongo2
> npm run mongo3
> npm run mongo4
> navigate to nginx folder
> start nginx
> cd frontend
> npm start