2016-08-03 13:57:09 +00:00
|
|
|
# Atlas
|
2016-02-27 21:53:11 +00:00
|
|
|
|
2017-04-24 03:12:53 +00:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
1. Install dependencies with `yarn`
|
|
|
|
1. Register a Slack app at https://api.slack.com/apps
|
|
|
|
1. Copy the file `.env.sample` to `.env` and fill out the keys
|
2017-06-26 00:21:33 +00:00
|
|
|
1. Run DB migrations `yarn run sequelize -- db:migrate`
|
|
|
|
1. Start the development server `yarn start`
|
2017-04-24 03:12:53 +00:00
|
|
|
|
|
|
|
|
2017-06-26 00:21:33 +00:00
|
|
|
## Migrations
|
2016-02-27 21:53:11 +00:00
|
|
|
|
2017-06-26 00:21:33 +00:00
|
|
|
Sequelize is used to create and run migrations, for example:
|
|
|
|
|
|
|
|
```
|
2017-06-27 06:33:05 +00:00
|
|
|
yarn run sequelize migration:create
|
|
|
|
yarn run sequelize db:migrate
|
|
|
|
```
|
|
|
|
|
|
|
|
Or to run migrations on test database:
|
|
|
|
|
|
|
|
```
|
|
|
|
yarn run sequelize db:migrate -- --env test
|
2017-06-26 00:21:33 +00:00
|
|
|
```
|