1.0.29 • Published 5 months ago

create-mern-stack v1.0.29

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

MERN Stack Boilerplate

This is a simple Node.js package to kickstart your MERN (MongoDB, Express.js, React, Node.js) stack development. The package provides a script to set up both the server and client sides of your application, install dependencies, and create a basic directory structure. It works exactly like create-react-app.

Authors

Prerequisites

Before running the scripts, make sure you have Node.js and npm installed on your machine. It is recommended that you have a mongodb connection string before running deployment.

Deployment

To deploy this project run

  npx create-mern-stack

Output

root
├── client
│  ├── README.md
│  ├── node_modules
│  ├── package.json
│  ├── package-lock.json
│  ├── .gitignore
│  ├── public
│  │   ├── favicon.ico
│  │   ├── index.html
│  │   ├── robots.txt
│  │   └── manifest.json
│  └── src
│   ├── App.css
│   ├── App.js
│   ├── index.css
│   ├── index.js
│   ├── Styles
│   ├── Utils
│   └── Components
│       ├── about.js
│       ├── edit.js
│       ├── home.js
│       └── navbar.js
├── server
    ├── .env
    ├── .gitignore
    ├── node_moduels
    ├── app.js
    ├── package.json
    ├── package-lock.json
    ├── config
    ├── controllers
    ├── middleware
    ├── models
    └── routes

Dependancies

Installed Dependancies after setup

Client
    1. react-router-dom
    2. bootstrap
    3. tailwindcss

Server
    1. express
    2. bcrypt
    3. body-parser
    4. cors
    5. dotenv
    6. express-session
    7. mongodb
    8. mongoose
    9. passport
    10. passport-local

Development

In root of dir, open two terminals

cd client

then

npm start

In other terminal

cd server

then

node app.js
1.0.29

5 months ago

1.0.28

5 months ago

1.0.22

5 months ago

1.0.26

5 months ago

1.0.25

5 months ago

1.0.24

5 months ago

1.0.23

5 months ago

1.0.27

5 months ago

1.0.19

5 months ago

1.0.18

5 months ago

1.0.17

5 months ago

1.0.16

5 months ago

1.0.21

5 months ago

1.0.20

5 months ago

1.0.15

5 months ago

1.0.14

5 months ago

1.0.13

5 months ago

1.0.12

5 months ago

1.0.11

5 months ago

1.0.10

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago