Koa boilerplate app which uses postgres as it's database and Sequelize as an ORM.
- Copy
.env.exampleinto.envand fill it out. - Change the package name (and other details) in
package.json. - Setup the packages with
npm install, make yourself a cup of tea this can take long. - Create a database (with the same name in your
.env) using your favourite DB admin tool. - Run
npm run createscripts, this will handle permissions for all the scripts inbin/. - Run
npm run createtables, this will create tables in your database from your models. - Put your frontend in
static/. - You're done! Launch the app with
npm run serve:devand open it in your browser.
- Dockerize - use docker-compose so that you can have different containers for db and app