Starter files for Express Projects
Automating the process of connecting mongoDB,setting up the server and the commonly used folder structure with one command
Installation
Step 1: Install my-project with npm (If your installing the module for the first time ):
npm i create-express-app-template -g
npx create-express-app-template project_name
If you have already installed the module then directly use npx command-
npx create-express-app-template project_name
Step 2: Select the frontend Framework (optional) :
Step3 : a) Folder Structure if you opt for React Framework
Inside of client folder you have you the same folder structure as of npx create-react-app
b) If you do not opt for React
Step 4 : In config/config.env file set up the MongoDB connection string
Step 5 : Navigate into the folder
cd project_name
Step 6: Run the server
npm start