A MVC pattern for building highly performant, large scale JSON APIs that anybody who knows the JavaScript language and its modern features will understand.
- Basic Authentication
- MVC Pattern folder structure
- Helpers, Middlewares & validators
- Sequelize ORM
- File Uploads
- Clone the repository with
git clone --depth=1 https://github.com/mfauzaan/nodejs-api-starter-MVC.git
- Open the folder
cd nodejs-api-starter-MVC
- Copy Env Example File
cp .env.example .env
, - Setup the database fields on
.env
- Install the dependencies with
npm install
- Generate App Key, this is used for hashing password
npm run key:generate
- Run the database migrations with
sequelize db:migrate
- Add some seed data to the development database with
sequelize db:seed:all
- Run the application in development mode with
npm run dev
(Make Sure Nodemon is installed in the system globally) - Access
http://localhost:3000
and you're ready to go!
- More authentication Method like JWT etc..
- Frontend Setup
- Http Tests
- Logger