https://github.com/librity/ignite_repo_tests
Rocket Seat - Ignite - Elixir - Challenge 12 - A tested repo fetcher made with Phoenix, Tesla and Bypass.
https://github.com/librity/ignite_repo_tests
bypass challenge elixir github-api phoenix-framework rocketseat-ignite tesla-api
Last synced: 3 months ago
JSON representation
Rocket Seat - Ignite - Elixir - Challenge 12 - A tested repo fetcher made with Phoenix, Tesla and Bypass.
- Host: GitHub
- URL: https://github.com/librity/ignite_repo_tests
- Owner: librity
- Created: 2021-04-01T16:58:05.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-25T11:59:55.000Z (over 3 years ago)
- Last Synced: 2025-01-08T07:38:51.251Z (5 months ago)
- Topics: bypass, challenge, elixir, github-api, phoenix-framework, rocketseat-ignite, tesla-api
- Language: Elixir
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rocket Seat Ignite - Repo
## Table of Contents
- [About](#about)
- [Endpoints](#endpoints)
- [Setup](#setup)
- [Bash Commands](#bash_commands)
- [Elixir Commands](#elixir_commands)
- [Libs](#libs)
- [Docs](#docs)
- [Resources](#resources)A repo fetcher backend made with Phoenix and Tesla.
Built-in:
- `GET` http://localhost:4000/dashboard
`Repos`
- `GET` http://localhost:4000/api/repos/:username
Install `Erlang`, `Elixir` and `Phoenix`.
```bash
# Create phoenix app without webpacker or html views
$ mix phx.new app_name --no-webpack --no-html# Intall dependencies
$ mix deps.get# Compile project
$ mix compile# Generate linter config file
$ mix credo.gen.config# Run linter
$ mix credo --strict# Start Phoenix dev server on http://localhost:4000
$ mix phx.server# Start your project as an Interactive Elixir session
$ iex -S mix# List all configured routes
$ mix phx.routes
```Tests
```bash
# Run tests
$ mix test# Run tests w/ coverage report
$ mix test --cover
```Github client:
```elixir
> Github.Client.get_user_repos("teamon")
> Github.Client.get_user_repos("danilo-vieira")
> Github.Client.get_user_repos("librity")
```- https://github.com/phoenixframework/phoenix
- https://github.com/teamon/tesla
- https://github.com/PSPDFKit-labs/bypass
- https://github.com/dashbitco/mox
- https://github.com/thoughtbot/ex_machina- https://elixir-lang.org/crash-course.html
- https://www.tutorialspoint.com/elixir/elixir_lists_and_tuples.htm
- https://stackoverflow.com/questions/29566248/how-to-use-io-inspect-on-a-long-list-without-trimming-it
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent