This is the API codebase for the DirectUpload POC app.
- Language: Ruby 3.2.1
- Framework: Rails 7.1.1
- Webserver: Puma
- Test Framework: RSpec
- Databases: Postgres
- Clone this repo
- Install PostgreSQL if you don't have it
- Install Rails gem (version on Gemfile)
- Run
bundle install
to install all gems required by the project - Create your .env file. You have an example at .env.template. You should be able to copy it and set your values. It's a good practice to keep the .env.template updated every time you need a new environment variable.
- Run
rails db:create db:migrate db:seed
to set up database - Check that tests are passing running
bundle exec rspec spec
- Run
rails s
You can run the unit tests with rspec
or rspec
followed by a specific test file or directory.
With bundle exec rake linters
you can run the code analysis tool, you can omit rules with:
- Rubocop edit
.rubocop.yml
- Reek edit
.reek.yml