Skip to content

tiagoleal/hotwire-rails7

Repository files navigation

Hotwire rails

Market List

Current Version Ruby Version

License

Web

Link project

Modelagem BD

Link

Presentation Latinoware - 2022

Link

Screenshot

Market List

Development of a market list using Ruby on Rails 7, Ruby 3, hotwire and Stimulus Js

  • Manage your products

Stack the Project

  • Ruby On Rails
  • Redis
  • PostgreSql
  • Rspec(TDD)
  • Hotwire para Rails
  • TurboRails
  • StimulusJS
  • WebSocket
  • Action Cable

Populate data of access

Run seed

Index

Requirements

First step is to install the docker service:

#Linux: ubuntu,Mint
$ sudo apt-get update
$ sudo apt-get install docker-ce
$ sudo apt install docker-compose

# Fedora
$ sudo dnf update -y
$ sudo dnf install docker-ce
$ sudo dnf -y install docker-compose

Tests

For test if the service was installed with succeed, you can run the command for to check de version of docker:

$ docker --version
#Must be have the docker version: Docker version 18.06.0-ce
$ docker-compose --version
#Must


You must have installed on your machine:

- Docker
- Docker Compose

First steps


Follow the instructions to have a project present and able to run it locally.

After copying the repository to your machine, go to the project's root site and:


1.  Construct the container

docker-compose build


2.  Create of Database

docker-compose run --rm website bundle exec rails db:create db:migrate


3.  up the project

docker-compose up


4. Without turning off the server, open a new window and run the migrations

docker-compose run --rm website bundle exec rails db:migrate if necessary populate database

OBS. If the server does not create the pid file. due to gitignore it is necessary to create manually. mkdir tmp/pids

Model

Category docker-compose run --rm website bundle exec rspec spec/models/category_spec.rb

Product docker-compose run --rm website bundle exec rspec spec/models/product_spec.rb

Order docker-compose run --rm website bundle exec rspec spec/models/order_spec.rb

OrderProduct docker-compose run --rm website bundle exec rspec spec/models/order_product_spec.rb

User docker-compose run --rm website bundle exec rspec spec/models/user_spec.rb

Authors

Project created by the following developers


Thiago Cardoso


Tiago Leal


Jefferson Maran

License

This project is licensed under a Apache license 2.0 - see file LICENSE for more details

About

Development of a market list using Ruby on Rails 7, Ruby 3, hotwire and Stimulus Js, Manage your products.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published