This repository contains the sample application for the Application Deployment in Kubernetes with the MongoDB Atlas Operator tutorial.
- You can follow the Getting Started with Atlas guide, to learn how to create a free Atlas account, create your first cluster and get your Connection String to the database.
Then, set the Atlas URI connection parameter in
src/back/.env
to your Connection String, and assign a port:
CONN_STR=mongodb+srv://<username>:<password>@sandbox.jadwj.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
PORT=3000
- Start the Express server:
cd src/back
npm install
npm install -g nodemon
nodemon server
- Start the React app:
cd src/front
npm install
npm start
Use at your own risk; not a supported MongoDB product