impactbyte-learn / code-restapi-orm-sqldatabase

Code Express with ORM and MySQL/MariaDB
5 stars 4 forks source link

Why we need change config.json to config.js? #1

Closed ariebrainware closed 6 years ago

ariebrainware commented 6 years ago

Based on [Doc Tutorial Sequelize]. We just need to modify config.json file?

http://docs.sequelizejs.com/manual/tutorial/migrations.html

mhaidarhanif commented 6 years ago

Because we have to use process.env.VARIABLE_NAME inside that config. In JSON, we cannot use variable.