A 3 week journey into making!
-
Copy over the
.env.examplefile to.envby 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
.envfile:DATABASE_URL=postgres://postgres:mysecretpassword@localhost:5432/postgres
-
Run
bin/rails db:prepareto 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:syncto sync the data from Airtable to your local database. -
Run
bin/devto start the development server on port 3000, then visithttp://localhost:3000in your browser. -
Profit???