A simple Events Manager API using Node.js Express and Heroku Postgres
- Create a Heroku application:
heroku create app-name
- Install a Heroku Postgres Addon on your new application:
heroku addons:create heroku-postgresql:hobby-dev -a app-name
- Load Database Schema
export DATABASE_URL="...."
cd src/server
npx sequelize db:migrate
In case you need to reset your database you can run:
heroku pg:reset -a app-name
Note: The previous command will destroy your database, so, run it only if you need to
Start simple by running npm run watch
. This will start the project with a local development server.
The source files are located in the src
folder. All web components are within the src/client/modules
folder. The folder hierarchy also represents the naming structure of the web components. The entry file for the custom Express configuration can be found in the 'src/server' folder.
Find more information on the main repo on GitHub.