-
Notifications
You must be signed in to change notification settings - Fork 100
Home
Vincent Pochet edited this page Apr 14, 2023
·
3 revisions
Welcome to the lago-api wiki!
To install the full app, you can refer to the Lago README
- Install rbenv
# Ubuntu
sudo apt install rbenv
# macOS
brew install rbenv
brew install libpq
rbenv init
# close and re-open your terminal
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash
rbenv install 3.2.2
rbenv global 3.2.2
- Install project dependencies
gem install bundler
bundle install
- Create a file named
config/master.key
, get the value for it into 1Password
touch ./config/master.key
- Copy the
.env.dist
to.env
cp .env.dist .env
- Install Rubocop locally (required for all developers)
gem install rubocop rubocop-rspec rubocop-performance rubocop-rails rubocop-thread_safety rubocop-graphql
- Start the database by running
docker-compose up db
- Prepare the database and run migrations
rake db:setup
rake db:migrate
- Launch the server
rails s
- You need to regenerate the schema each time you change something about GraphQL, if you don't, it will make your specs fail.
$ rake graphql:schema:dump