Skip to content

Just a MERN boiler so I don't have to keep rewriting this part.

Notifications You must be signed in to change notification settings

AudreyLin/MERNBoiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MERN Boilerplate w/ Layout & some basic pages

A MERN Boilerplate for anyone who wants to use it in their browser project.

It comes with a pre-set, responsive navigation, and basic pages. The pages include the home/landing page, about, and contact pages, all will be blank, but they're just there as place holders for the navigation.

Everything can be edited to suit your preferences. I just made this one so I don't have to keep remaking it for my MERN browser projects.

Features

  • Google Fonts: I used poppins for this one, but you can change it.
  • Express Server that listens on port set both on the server.js file & .env config for dotenv
  • Preset directories set up for controllers, routes, models, and config
  • create-react-app frontend
  • scripts preset (see package.json)
  • React-router v6 route setup
  • Responsive Navigation
  • customizable
  • scalable
  • preset, but customizeable light/dark theme toggle
  • Set up for the react@18 and react-dom@18 update

Acknowledgements

Generate Favicons

  1. Generate your favicon files
  2. Extract the package download into "./frontend/public" directory
  3. Insert the given code into the head section of the "./frontend/public/index.html" file

Light/Dark Theme Toggle Customization

You can change your theme colors in the "./frontend/src/index.css" file's CSS variables

Google Fonts

-Google Fonts You can choose your fonts, then insert the code into the head section of the "./frontend/public/index.html" file

DotEnv & Environment Variables

-DotENV NPM Add your environment variables to the .env file. See the 'env.md' file in '/backend/config/env.md'.

Install dependencies

npm install
cd frontend
npm install

Run Project

frontend

npm run frontend

backend

npm run server

dev Concurrently run front and back

npm run dev

Proxying API requests

(Proxying API requests in development)[https://create-react-app.dev/docs/proxying-api-requests-in-development/]

About

Just a MERN boiler so I don't have to keep rewriting this part.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published