Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tiago154/rocketpay
π Projeto criado na Next Level Week #4 na trilha de Elixir
https://github.com/tiago154/rocketpay
coveralls ecto elixir elixir-coverage excoveralls github-actions-elixir nlw nlw-4 phoenix rocketseat
Last synced: about 1 month ago
JSON representation
π Projeto criado na Next Level Week #4 na trilha de Elixir
- Host: GitHub
- URL: https://github.com/tiago154/rocketpay
- Owner: tiago154
- Created: 2021-02-22T13:23:14.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-04T15:28:51.000Z (almost 4 years ago)
- Last Synced: 2024-12-14T00:40:19.729Z (about 2 months ago)
- Topics: coveralls, ecto, elixir, elixir-coverage, excoveralls, github-actions-elixir, nlw, nlw-4, phoenix, rocketseat
- Language: Elixir
- Homepage:
- Size: 65.4 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Elixir CI](https://github.com/tiago154/rocketpay/actions/workflows/elixir.yml/badge.svg)](https://github.com/tiago154/rocketpay/actions/workflows/elixir.yml)
[![Coverage Status](https://coveralls.io/repos/github/tiago154/rocketpay/badge.svg?branch=master)](https://coveralls.io/github/tiago154/rocketpay?branch=master)# Rocketpay
To start your Phoenix server:
* Install dependencies with `mix deps.get`
* Create and migrate your database with `mix ecto.setup`
* Start Phoenix endpoint with `mix phx.server`Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).
## Learn more
* Official website: https://www.phoenixframework.org/
* Guides: https://hexdocs.pm/phoenix/overview.html
* Docs: https://hexdocs.pm/phoenix
* Forum: https://elixirforum.com/c/phoenix-forum
* Source: https://github.com/phoenixframework/phoenix## Iniciando o projeto
### Criando um novo diretΓ³rio sem html e css (api)
```bash
mix phx.new rocketpay --no-webpack --no-html
```## Credo
### Criando arquivo de lint do projeto
```bash
mix credo gen.config
```## Ecto
#### Atalho para criar o banco e rodar as migrates
```bash
mix ecto.setup
```#### Cria o banco de dados
```bash
mix ecto.create
```#### Deleta o banco de dados
```bash
mix ecto.drop
```#### Cria uma migration
```bash
mix ecto.gen.migration create_blablabla_table
```#### Executa as migrations
```bash
mix ecto.migrate
```## PostGres Docker
```bash
docker run --name postgres-dev -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -p 5432:5432 -d postgres
``````bash
docker start postgres-dev
```