Giter Site home page Giter Site logo

dfd's Introduction

Dont Forget the Donor

Run it

Install ruby libraries

bundle install

Install javasciprt libraries

yarn install

Start the web servers

foreman start

Make a request, by visiting in browser or making an api request:

curl 'http://0.0.0.0:9292/donors' -H 'Content-Type: application/json' --data '{"name":"Amy"}'

Development

Guided by https://ryanbigg.com/2020/02/rom-and-dry-showcase-part-1 and https://github.com/hanami/controller and https://github.com/hanami/view

Tests

bundle exec rspec

DB

Get a docker postgres up and running using this:

docker run --name postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres
docker exec -it postgres createdb dfd -U postgres

Notes

Code

Keep things standard:

bundle exec standardrb --fix

Migrations

Use migrations to handle db schema changes

bundle exec rake "db:create_migration[create_donors]"
bundle exec rake db:migrate

Docker

To make ease use of this application in Docker we use docker-compose. The base config is in docker-compose.yml, the development environment uses docker-compose.override.yml to overlay the config (default behaviour). For the production environment we use docker-compose.prod.yml for the config overlay.

The default is setup for development.

docker-compose up

When ready to deploy, there is a docker compose file of overrides for a production style execution.

docker-compose -f docker-compose.yml -f docker-compose.prod.yml up

dfd's People

Watchers

Ben avatar James Cloos avatar  avatar

dfd's Issues

How to debug Ruby foreman project?

If you can help

As per images

https://drive.google.com/file/d/1GvQfJhf8WSbvIKecCLCpKcN3hglqs0pQ/view?usp=sharing

I created in the workspace some releases

The IDE starts the application, until I show the return in chrome

The problem is that the variable pointed at the breakpoint is not being returned

Can anyone help?

As per images

https://drive.google.com/file/d/1M6mhdvItbj2cu0Zqool6D5VZzhJHpM72/view?usp=sharing

The IDE starts the application, until I show the return in chrome

The problem is that the error is being returned when trying to debug the application

Can anyone help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.