A 3 week journey into making!
-
Copy over the
.env.example
file to.env
by runningcp .env.example .env
-
For the Slack bot, make sure you have the following scopes enabled:
channels:history
,chat:write
,groups:history
,im:write
,reactions:write
,users.profile:read
,users:read
,users:read.email
,im:history
,im:read
. -
Make sure you have PostgreSQL running locally. You can use Docker to make this easier:
docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d postgres
Then edit this line in your
.env
file:DATABASE_URL=postgres://postgres:mysecretpassword@localhost:5432/postgres
-
Run
bin/rails db:prepare
to prepare/seed the database. -
Comment out any airtable refrence from
app/models/user.rb
, unless you have access to the journey airtable. (if you do comment it out, make sure you dont commit it) If you do have access, you can runbin/rails airtable:sync
to sync the data from Airtable to your local database. -
Run
bin/dev
to start the development server on port 3000, then visithttp://localhost:3000
in your browser. -
Profit???