https://github.com/drenther/mern-transaction-starter
This is a fullstack MERN application template with MongoDB Transactions in mind.
https://github.com/drenther/mern-transaction-starter
Last synced: 4 months ago
JSON representation
This is a fullstack MERN application template with MongoDB Transactions in mind.
- Host: GitHub
- URL: https://github.com/drenther/mern-transaction-starter
- Owner: drenther
- Created: 2019-06-17T11:23:57.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-17T11:49:07.000Z (about 6 years ago)
- Last Synced: 2025-02-24T16:30:04.903Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 242 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mern-transaction-starter
This is a fullstack MERN application template with MongoDB Transactions in mind.
It has a React frontend, Node backend powered by Express using MongoDB as the database.
It uses a monorepo architecture for source control. It uses yarn workspaces and lerna to help manage the monorepo structure.
## Requirements
```
Node version = ^10
Yarn version = ^1.16
```## Scripts
```
# to install dependencies
$ yarn install# to start both client/server development instances
$ yarn start# to start client dev server
$ yarn start:client# to start server dev server
$ yarn start:server# to run dev MongoDB with replica sets (it will download 4.0.4 mongod and then start)
$ yarn db# to use the mongod already installed in the system
$ yarn db:d# to generate client production build
$ yarn build:client
```## Deployment
- Frontend - `netlify.toml` is present to simplify frontend deployment to Netlify
- Backend - `Procfile` is present to simplify backend deployment to Heroku
- Database - can be deployed to Mongo Atlas (only one to support MongoDB transactions)## Directory Structure
```
|-- package.json
|-- lerna.json
|-- node_modules
|-- packages
|-- client
| |-- public
| |-- src
| | |-- components
| | |-- core
| | |-- utils
| |-- package.json
| |-- README.md
|-- server
|-- env
|-- bin
| |-- www
|-- controllers
|-- models
|-- lib
|-- helpers
|-- utils
|-- app.js
|-- package.json
|-- README.md
```