- Node.js - http://nodejs.org/
- Express - http://expressjs.com/
- Mysql - https://www.mysql.com//
- nodemon - https://www.npmjs.com/package/nodemon
- dotenv - https://www.npmjs.com/package/dotenv/
- nodemon - https://www.npmjs.com/package/nodemon/
- bodyparser - https://www.npmjs.com/package/body-parser/
- mysql - https://www.npmjs.com/package/mysql/
- jsonwebtoken - https://mongoosejs.com/
- bcrypt - https://mongoosejs.com/
- crud example
- authentication with jwt, login
- error handling
- custom message api response
- strict mode
cp .env.sample .env
# install package
npm install
# running app
npm run start
APP_PORT=3000
TZ=Asia/Jakarta
SECRET_KEY=secretpassword
#Database config
DB_HOST=host #server host database
DB_DATABASE=database name #db name
DB_USERNAME=database username #username
DB_PASSWORD=database password #password
username: admin
password: 123
- Guideline:
- Use camelCase for variable name, naming function, load module or other functions
- Use UpperCase for Constant Variable
- Use PascalCase for class name, models, controller, route, load module model
- Use snake_case for file name as variable
- Function name use Verb
- Variable name use Noun