The MERN stack starter demonstrates a working application that uses a React frontend, with a backend build with ExpressJS and MongoDB. It shows how the client can make client HTTP requests and maintain persistant sessions.
By default, the server will expect to connect to a MongoDB instance running. However, you can customize the environment to use different values for the MongoDB host. To do that, you can create a .env
file for specifying credential information for MongoDB.
Create a new file called .env
, with the following YAML:
ATLAS_URI=mongodb+srv://<username>:<passoword>@cluster0-lfzvm.gcp.mongodb.net/test?retryWrites=true&w=majority