https://github.com/mongodb-developer/mern-k8s
Simple demo app using the MongoDB Atlas Operator on k8s
https://github.com/mongodb-developer/mern-k8s
Last synced: 3 months ago
JSON representation
Simple demo app using the MongoDB Atlas Operator on k8s
- Host: GitHub
- URL: https://github.com/mongodb-developer/mern-k8s
- Owner: mongodb-developer
- License: apache-2.0
- Created: 2022-06-26T13:24:41.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-28T16:27:13.000Z (10 months ago)
- Last Synced: 2025-03-22T13:51:25.649Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 630 KB
- Stars: 10
- Watchers: 3
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MERN & Kubernetes Atlas Operator Demo Application
This repository contains the sample application for the [Application Deployment in Kubernetes with the MongoDB Atlas Operator](https://www.mongodb.com/developer/products/atlas/kubernetes-operator-application-deployment/) tutorial.
## How To Run
1. You can follow the [Getting Started with Atlas](https://docs.atlas.mongodb.com/getting-started/) 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://:@sandbox.jadwj.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
PORT=3000
```2. Start the Express server:
```
cd src/back
npm install
npm install -g nodemon
nodemon server
```3. Start the React app:
```
cd src/front
npm install
npm start
```
## Disclaimer
Use at your own risk; not a supported MongoDB product