A P2E for Node.js web applications. This P2E gives the basic stucture of application start with while bundling enough useful features so as to remove all those redundant tasks that can derail a project before it even really gets started. This P2E users Express with sequelize as ORM and MySQL as database.
NodeJs
NPM
MySQL
- Install the dependencies with
npm install
- Create database in MySQL.
- Update the your database name and credentials in the
.env
file. - Run the application with
npm start
(MySQL service should be up and running). - Access
http://localhost:3000
and you're ready to go!
.
├── app/
│ ├── controllers/ # Controllers
│ ├── middlewares/ # Middlewares
│ ├── models/ # Express database models
├── config/
├── public/
│ ├── css/ # Stylesheets
│ ├── js/
│ ├── fonts/
│ ├── images/
├── .env # API keys, passwords, and other sensitive information
├── routes/ # Route definitions
├── views/ # All view files
├── index.js # Express application
└── package.json # NPM Dependencies and scripts