Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khanguslee/mern-stack-template
Quick template repo that sets up a full MERN stack.
https://github.com/khanguslee/mern-stack-template
Last synced: 18 days ago
JSON representation
Quick template repo that sets up a full MERN stack.
- Host: GitHub
- URL: https://github.com/khanguslee/mern-stack-template
- Owner: khanguslee
- License: mit
- Created: 2020-11-13T08:48:31.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-15T10:13:24.000Z (almost 4 years ago)
- Last Synced: 2024-10-02T11:41:11.008Z (about 1 month ago)
- Language: JavaScript
- Size: 355 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MERN Stack Template
Quick template repo that sets up a full MERN stack.
This repo features the following:
Front-End:
- React
- SCSSBack-End:
- NodeJS
- Express
- MongoDBDevelopment tools:
- eslint
- prettier
- husky + lint-staged
- winston for back-end logging## Getting Started
The application has been split into `server` and `client` folders which contain the node + express backend and React frontend respectively.
Clone the repository to get a local copy of the repository.
``` bash
git clone https://github.com/khanguslee/MERN-stack-template.git
```### Installation
Since the server and client projects have been split, you will need to install libraries in both folders. To do this from the root of the project, please run the following:
``` bash
yarn run app:install
```### Development
When working on the project, you can there is hot reloading so that when you make a change to either the client or server files, it will automatically reload the project for you.
``` bash
yarn run dev
```### Production
For production, the React application will need to be built and then hosted on the server. To create the build, you will need to run:
``` bash
yarn run client:build
```Once you have built the React application, you will need to run the server using:
``` bash
yarn run server
```