Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.23 KB

File metadata and controls

66 lines (45 loc) · 1.23 KB

Rails API

Run In Postman

Regular Setup

bin/bundle install

Database setup

rails db:create
rails db:migrate
rails db:seed

Start server

bin/rails s

Docker setup

cp .env.example .env # Fill with your details
docker compose up --build

Database setup

docker compose run api rails db:create
docker compose run api rails db:schema:load
docker compose run api rails db:seed

or run from within the container

docker exec -it flashmemo_api /bin/bash
bin/rails db:create // or whatever command you need

Tests

rspec .

Linting

rubocop -a

Neo4J

After successfully running the application with docker compose the neo4j container should be up and running. Access the neo4j browser at: http://localhost:7474

Preview mailers

Open up http://localhost:3000/rails/mailers in your browser.