Credit to Brad Traversey for the boilerplate code
# Install dependencies for server
npm install
# Install dependencies for client
npm run client-install
# Run the client & server with concurrently
npm run dev
# Run the Express server only
npm run server
# Run the React client only
npm run client
# Set up environment variables
create file '.env'
paste this inside:
MONGODB_URI = mongodb:https://test:[email protected]:27017,gtprojects-shard-00-01-lifqz.mongodb.net:27017,gtprojects-shard-00-02-lifqz.mongodb.net:27017/test?ssl=true&replicaSet=GTProjects-shard-0&authSource=admin&retryWrites=true
# Server runs on https://localhost:5000 and client on https://localhost:3000