/iic3143-ventana-ciudadana

Small application that exposes the latest information on Chilean parlamenteries. Made for course IIC3143 - Software Development

Primary LanguageJavaScriptThe UnlicenseUnlicense

Template

Template built with koa for IIC2513 - Tecnologías y Aplicaciones Web, Pontificia Universidad Católica de Chile.

Prerequisites:

Project Setup

  • Clone repository
  • Install dependencies:
    • yarn install

Database Setup (development)

Install postgresql

Create development database

createdb your_awesome_name

Run migrations

./node_modules/.bin/sequelize db:migrate

Add a .env file to the main directory and use your credentials

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

Run the app!

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 :)