Template built with koa for IIC2513 - Tecnologías y Aplicaciones Web, Pontificia Universidad Católica de Chile.
- PostgreSQL
- you will need a database with name and user/password as configured in
src/config/database.js
- you will need a database with name and user/password as configured in
- Node.js v8.4.0 or above
- Yarn
- Clone repository
- Install dependencies:
yarn install
- On Mac OS X using Homebrew:
brew install postgresql
- Start service: check LaunchRocket or lunchy for postgresql service management
- Other platforms
- More details
createdb your_awesome_name
./node_modules/.bin/sequelize db:migrate
DB_NAME=your_awesome_name
DB_USERNAME=your_psql_name
DB_PASSWORD=your_psql_pass
SENDGRID_USER=your_sendgrid_user
SENDGRID_PASS=your_sendgrid_pass
yarn start
or directly
node index.js
or, if you want automatic restart after any change in your files
yarn dev
Now go to http://localhost:3000 and start browsing :)