create-express-app-template

1.1.7 • Public • Published

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

Package Sidebar

Install

npm i create-express-app-template

Weekly Downloads

2

Version

1.1.7

License

MIT

Unpacked Size

4.64 kB

Total Files

3

Last publish

Collaborators

  • prasanna09