BenElferink

BenElferink /mern-template

Quickstart your MERN stack (Fullstack) application with this template!

70
23
GitHub
Public

Repository Statistics

Key metrics and engagement data

70
Stars
23
Forks
5
Open Issues
0
Releases
1.33
Engagement Rate
Default branch: main

Timeline

Repository has been active for 4 years, 7 months

Repository Created

Last Commit
Recently active

README.md

MERN Stack Template

Repository image

What is this template?

This template allows you to quick-start your Fullstack application using the MERN stack, it has a server setup with some basic authentication, and a client ready to communicate with the backend.

Repository image

How to use this template

1. Generate repository from template:

Click "Use this template" to generate a new repo, then open your terminal and clone your new repo.

1git clone https://github.com/[your_user_name]/[your_repo_name].git

2. Install dependencies:

Go to the server folder, and run install.

1cd ./server
2npm i

Go to the client folder, and run install.

1cd ./client
2npm i

3. Prepare MongoDB:

Prepare your MongoDB database (using Atlas, or Community). Then configure your database within server/src/constants/index.js (or server/src/.env), by configuring the MONGO_URI variable.

4. Start applications:

Go to the server folder, and run dev.

1cd ./server
2npm run dev

Go to the client folder, and run dev.

1cd ./client
2npm run dev

5. Happy Coding !!!