• Stars
    star
    209
  • Rank 188,325 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A minimalist MERN app boilerplate that does'nt suck

mongo

BOILERPLATE

This is a boilerplate repo for creating new mern stack apps that doesn't sucks.

This is minimalist boilerplate for Full Stack MERN developers (Recommended for beginners only). This boilerplate provides basic configurations like:

  • Sample CRUD API
  • Create-react-app boilerplate
  • NPM Scripts needed for MERN Stack
  • Sample mongoose connection provided for connecting API with database like mongodb
  • Heroku Deployment Configurations

Available Scripts

For APIs to work in development please add a .env file in root of the project and add your MONGODB_URI in that file.

yarn start

Runs the server in the production mode.
Open http://localhost:5000/api/v1/get to view sample CRUD API output from server in the browser.

yarn run dev

Runs the server in the development mode.
Open http://localhost:5000/api/v1/get to view sample CRUD API output from server in the browser.

The server will auto restart if you make any changes.

yarn run client

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn run mern

Runs the server and the client at the same time that makes MERN Stack development easier.

Open http://localhost:5000/api/v1/get to view sample CRUD API output from server in the browser.

Open http://localhost:3000 to view React App in the browser.

Steps for Heroku Deployment

Dependencies

  • nodejs
  • yarn package manager
  • heroku cli

Deployment Steps

  1. Check whether you have heroku installed in you PC or not using heroku --version command. If you don't have then you can install it from here.

  2. Create your account if you don't have any.

  3. Then open the terminal or cmd in root directory and make sure you have created a git repository for your project. Remove .git directory if present in client folder otherwise it may lead to deployment issues.

  4. All the heroku build deployment scripts are provided you can review and update the engine in root package.json if you want to deploy with any other version of node and yarn .

  5. Then login your heroku account using heroku login.

  6. After login its time to create a new app with you app name using heroku create <your unique app name>. If you get name already used then you have to choose any other unique name.

  7. Now open the heroku account in the browser, you will see your app is created. Then open the settings of the app and in the config vars add heroku variables like MONGODB_URI.

  8. For deployment run git push heroku master and it will deploy your app on heroku.

LICENSE

MIT LICENSE

More Repositories

1

Free-Algorithms-Books

Free Algorithms books for programmers.
JavaScript
981
star
2

Algorithms-and-Data-Structures

Repository for Algorithms and Data Structures in languages every programmer should know !!!
Java
16
star
3

RAINBOW

This is a library for using colors in a terminal in linux and MAC.
C++
5
star
4

Free-Algorithms-Books-website

Website for free algorithm books
JavaScript
3
star
5

FOOD-ORDERING-SOFTWARE

This is my c++ project in which I have implemented food ordering system.
C++
3
star
6

React-Calci

Simple calculator made in react
JavaScript
3
star
7

FreeCodeCampSolutions

Solutions to freecodecamp npm lessons
2
star
8

GauravWalia19

2
star
9

TETRIS

This repository contains the tetris game
Java
2
star
10

shoppinglistdesktopapp

This project contains Shopping List application for different desktops - Released on Jan 14
JavaScript
2
star
11

Tribute-Page

This is just a webpage to give tribute to Albert Einstien
HTML
1
star
12

Programmer-Survey

This is a survey page for programmers...
HTML
1
star
13

CRYPTO-WALLET

This is project based on cryptocurrency...
HTML
1
star
14

minfile

It will generate the min file for you for example .css to .min.css
C
1
star
15

React-Todo-App

This repository contains the code for react todo app.
JavaScript
1
star
16

Product-Website-Generator

This contains sample website of a product and it will generate any product page as needed in coming days..
CSS
1
star
17

Chaos2.0

This is a blockchain based Hackathon project on Kerala Relief
JavaScript
1
star
18

SNAKE-GAME

This is my college project which contains snake game
C++
1
star
19

AutoJava

Tool for realtime java compiling for linux users just like nodemon.
PowerShell
1
star
20

Id-Generator

This repository contain the program which can generate random ids.
JavaScript
1
star
21

solomon_solomon.com

Comming soon....
JavaScript
1
star
22

mysql-server-jdbc-ubuntu-18.04

This repository contains all the info about mysql (using jdbc also)
Java
1
star
23

Star-Match-Game

This is Star Match Game in react
JavaScript
1
star
24

CSS-BASICS

This repository contains the content of the edx course https://www.edx.org/course/css-basics-w3cx-css-0x-0
HTML
1
star