Skip to content

Prasanna0908/create-express-app-template-NPM-Package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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) :

Capture2

Step3 : a) Folder Structure if you opt for React Framework

Capture6

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

Capture4

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

Releases

No releases published

Packages

No packages published