Git Product home page Git Product logo

pets's Introduction

Lost and found pets

Ruby

It is web app for pet owners to help them found theirs missing animals. It allows to publish found/lost pet announcement and browse already published ones.

How to run it locally?

Start app:

docker compose up

Set up DB

Set up DB:

docker compose exec web rails db:create 
docker compose exec web rails db:migrate 
docker compose exec web rails db:migrate RAILS_ENV=test

Backend tests

docker compose exec web rails test
docker compose exec web /bin/bash -c "cd auth; rake test"
docker compose exec web /bin/bash -c "cd announcements; rake test"

Frontend tests

docker compose exec frontend npm run test:unit run
docker compose exec frontend npm run lint
docker compose exec frontend npm run type-check

Architecture

It is not typical Rails way application but modular-monolith based on Ruby on Rails.

Ruby on Rails has resposibility of application layer exposing HTTP API and providing programming libraries like ActiveRecord or tools like migrations. All "domain" code which consists any kind of business logic (not http one) is spread around modules (done in form of gems - Ruby libraries).

There are two modules currently:

Modules are done in to make it possible to extracted every single one of them to separate service (server instance) if needed. To achive that, every one exposes its own Facade object:

pets's People

Contributors

kzielonka avatar

Watchers

 avatar

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.