ProGeSer API is part of the ProGeSer project, an application to manage greenhouses. You can find the front part here.
You can run the application in 2 ways.
- Ruby v 3.3.5
- Bundler v. >= 2.5.18
- Postgresql v. 15.0.0
At the root of the project, run the following:
gem install bundler
bundle install
To launch the application run the following:
bundle exec rails s
Then, to populate database and some fake datas, run the following:
bundle exec rake db:create db:migrate db:seed
You can call the API on port 3000 by default.
To see the endpoints documentation, you can go to:
To run smoke tests, run the following:
bundle exec rails test
To run integration tests, run the following:
bundle exec rails spec
- Docker v. >=24.0.7
- Docker Compose v. >= 2.23.0
At the root of the project, run the following:
docker-compose up -d
To populate database and some fake data, run the following:
docker-compose run web bundle exec rake db:create
docker-compose run web bundle exec rake db:migrate
docker-compose run web bundle exec rake db:seed
You can call the API on:
To see the endpoints documentation, you can go to: