Using Mern Stack code for the Mern Tutorial
The app.json
file is building a small mern application on Heroku.com
{
"name": "mern-atlas-starter",
"description": "A MERN stack application with MongoDB",
"logo": "https://webimages.mongodb.com/_com_assets/cms/kusbhnrd813qmv46m-MongoDBLeaf1.png",
"repository": "https://github.com/mongodb-developer/heroku-mern-atlas-starter",
"keywords": ["node", "express", "react", "mongodb", "heroku", "atlas"],
"env": {
"ATLAS_URI": {
"description": "MongoDB Atlas connection string",
"required": true
}
},
"buildpacks": [
{
"url": "heroku/nodejs"
}
]
}
Additionally, there is a small package.json
to orchestrate the client and server deploy:
{
"name": "heroku-mern-atlas-starter",
"scripts": {
"postinstall": "cd mern/client && npm install && npm run build && mv dist ../server/public",
"start": "cd mern/server && npm install && npm start"
}
}
The button on the top can be used to deploy this repo into the Heroku.
Input your Atlas Cluster to integrate the service with MongoDB Atlas.
Local version of the code can be found here:
Use at your own risk; not a supported MongoDB product