Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matheusmendescosta/bookstore
https://github.com/matheusmendescosta/bookstore
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/matheusmendescosta/bookstore
- Owner: matheusmendescosta
- Created: 2023-09-06T19:14:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-09T01:48:59.000Z (about 1 year ago)
- Last Synced: 2023-09-09T03:15:50.973Z (about 1 year ago)
- Language: Ruby
- Size: 124 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Github Badge](https://img.shields.io/badge/-Github-000?style=flat-square&logo=Github&logoColor=white&link=https://github.com/matheusmendescosta)](https://github.com/matheusmendescosta)
[![Linkedin Badge](https://img.shields.io/badge/-LinkedIn-blue?style=flat-square&logo=Linkedin&logoColor=white&link=https://www.linkedin.com/in/matheusmendescosta/)](https://www.linkedin.com/in/matheusmendescosta/)
[![Twitter Badge](https://img.shields.io/badge/-Twitter-1ca0f1?style=flat-square&labelColor=1ca0f1&logo=twitter&logoColor=white&link=https://twitter.com/batheusmendes)](https://twitter.com/batheusmendes)## Simple Book Store
Clonando o projeto
`git clone https://github.com/matheusmendescosta/bookstore.git`
Acessando a pasta do projeto
`cd bookstore`
Instalando dependencias
`bundle install`
Caso voce estiver usando macOs rode o comando para saber o socket do seu mysql
`netstat -ln | grep mysql`
A saida sera algo como
`/tmp/mysql.sock`
Com essa informação mude no arquivo `database.yml` alterando a linha 18 com o socket do seu mysql
`socket: /tmp/mysql.sock`
Para rodar esse projeto, você vai precisar adicionar as seguintes variáveis de ambiente no seu .env
`DB_USERNAME=username`
`DB_PASSWORD=password`
Crie um esquema
`rails db:create`
Faça a migration
`rails db:migrate`
Rode o seeds
`rails db:seed`
### Book Store Models