A administration system to manage many types of business, in this case, was used a Pet Shop Admin like example.
-
Repository
- Github
-
Development
- Ruby On Rails
- Libraries
- Sidekiq
- Fae
- Libraries
- Redis
- PostgreSQL
- Mailcatcher
- Ruby On Rails
-
Environment
- Docker
- Docker-compose
Have Docker installed in your machine
See how to install Docker here
- To see this application working in your machine, clone this project with:
git clone [email protected]:eduardo-rubio/petshop_admin.git
- Gems install
To install the gems files run:
docker-compose run --rm app bundle install
- Database creation and make migrations
docker-compose run --rm app bundle exec rake db:create db:migrate
- Build the application
docker-compose build
- Seed the database
docker-compose run --rm app bundle exec rake fae:seed_db
- Up the application
docker-compose up
- Now, create your first user.
To do it access:
http://localhost:3000/admin/first_user
http://localhost:3000/sidekiq/
- Redis
redis-cli -h 127.0.0.1 -p 6379 PING
- Open Ports
docker container ls --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" -a
- Postgres connection
{
"label": "127.0.0.1",
"host": "127.0.0.1",
"user": "postgres",
"port": 6543,
"ssl": false,
"database": "",
"password": "password"
}