Skip to content

MERN stack boilerplate (updated to use vite instead of create-react-app)

License

Notifications You must be signed in to change notification settings

Hack-the-Future/mern-boilerplate-v2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MERN Boilerplate

Introduction

This is a full-stack boilerplate using MongoDB, Express.js, React.js, Node.js, and JavaScript

The main branch contains the starter code for a basic React project (initialized with vite) using MUI and TailwindCSS for styling, and an Express server connected to MongoDB.

Requirements

Recommended VsCode extensions

Setup

Install all dependencies for client/ and server/.

In two separate terminals:

cd client
npm install
cd server
npm install

Create .env files in both client/ and server/

root/
  client/
    .env
  server/
    .env

client/.env

NODE_ENV=development
REACT_APP_SERVER_URL=http://localhost:8080

server/.env

NODE_ENV=development
PORT=8080
MONGO_URI=mongodb:<link to mongo databse>
CLIENT_URL=http://localhost:5173

Running client and server

In two separate terminals:

cd client
npm run dev
cd server
npm start

Technologies

Frontend

Backend

Others

About

MERN stack boilerplate (updated to use vite instead of create-react-app)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.0%
  • HTML 15.3%
  • CSS 0.7%