*** Work in Progress - see here for Issue opened on Realworld repo ***
This is a Grape codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.
This codebase was created to demonstrate a fully fledged fullstack application built with Grape including CRUD operations, authentication, routing, pagination, and more.
For more information on how to this works with other frontends/backends, head over to the RealWorld repo.
When complete, this app will adhere to all tests located in this Postman collection.
docker-compose build
to build the app, once it's cloned down.docker-compose up -d
thendocker-compose run api sequel -m db/migrations postgres://postgres:abc@db:5432/conduit
to migrate the databasedocker-compose up
then browse to your localhost to view the app.docker-compose run api rspec
to run tests.
If a migration is changed, stop the container then delete the volume that it is associated with docker volume rm <volume_name>
- to find volumes docker volume ls
Rake tasks for setup/reset
docker-compose run api rake db:migrate
docker-compose run api rake db:reset
- put pry in code where you want it to be & bring the server up with
docker-compose up
as above - in a second terminal window than the one used to bring the app up, type
docker attach grape-realworld-example-app_api_1
- send the request through Postman once the server is running
- you are now in pry in that window