Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mateusfg7/rocketpay
NLW#4 - 22/02 a 28/02
https://github.com/mateusfg7/rocketpay
auth elixir nlw nlw-4 phoenix rocketpay rocketseat
Last synced: about 2 months ago
JSON representation
NLW#4 - 22/02 a 28/02
- Host: GitHub
- URL: https://github.com/mateusfg7/rocketpay
- Owner: mateusfg7
- Created: 2021-02-22T21:12:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-25T15:48:14.000Z (over 3 years ago)
- Last Synced: 2024-10-15T21:21:37.223Z (3 months ago)
- Topics: auth, elixir, nlw, nlw-4, phoenix, rocketpay, rocketseat
- Language: Elixir
- Homepage:
- Size: 82 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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).
## Routes (dev)
### Create User
_**Example Request**_
```http
POST /api/users HTTP/1.1
Host: 0.0.0.0:4000
Content-Type: application/json; charset=utf-8{
"name": "Mateus Felipe Gonçalves",
"nickname": "mateusfg7",
"email": "[email protected]",
"age": 18,
"password": "x7#Fv84Sa4$d7"
}
```_**Example Response**_
HTTP Status Code: `201`
Response Body:
```json
{
"message": "User created",
"user": {
"account": {
"balance": "0.00",
"id": "e6987693-d884-4bd6-b429-f089e2bf2d3f"
},
"id": "ce605574-675b-4965-a812-2b7487d077d4",
"name": "Mateus Felipe Gonçalves",
"nickname": "mateusfg7"
}
}
```## 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