项目作者: fabianoleittes

项目描述 :
🎓 Backend Engineer Code Challenge - Levee
高级语言: Ruby
项目地址: git://github.com/fabianoleittes/code-challenge-levee-ruby.git
创建时间: 2021-02-10T18:29:51Z
项目社区:https://github.com/fabianoleittes/code-challenge-levee-ruby

开源协议:MIT License

下载



Code challenge Levee API


Backend Engineer Code Challenge - Levee





Testing

GitHub language count

Repository size


GitHub last commit


License

Stargazers


Status: WIP


About
Features
How it works
Tech Stack
Author
License

About

This project is a simple API for some Job routines, such as creating, listing, and activate.


Features

  • Create job
  • List the all jobs
  • Activate the status for a specific job
  • List the percentage and number of active jobs by category.
  • JWT Token Based Authentication
  • API versioning
  • JSON Schema implementation
  • Setup scripts

How it works

This project is Restful API:

  1. Backend

Pre-requisites

Before you begin, you will need to have the following tools installed on your machine:
docker, docker compose, Git.

In addition, it is good to have an editor to work with the code like VSCode

Running the Backend (server)

  1. # Clone this repository
  2. $ git clone https://github.com/fabianoleittes/code-challenge-levee-ruby
  3. # Access the project folder cmd/terminal
  4. $ cd code-challenge-levee-ruby
  5. # building the project
  6. $ docker-compose build
  7. # Run the application in development mode
  8. $ docker-compose up
  9. # The server will start at port: 3000 - go to http://localhost:3000
  10. # Run tests in container
  11. $ docker-compose run --rm api bin/rspec spec

API Request

Signup/Login

URL / ENDPOINT VERB DESCRIPTION
/v1/signup POST Create user
/v1/auth/login POST Generate token

Jobs

URL / ENDPOINT VERB DESCRIPTION
/v1/jobs POST Create Job
/v1/jobs GET Returns all Job
/v1/jobs/:id PUT Update Job Status
/v1/category/:id GET List percentage

Test endpoints API using Insomnia


Run in Insomnia


Tech Stack

The following tools were used in the construction of the project:

API (Ruby on Rails + PostgreSQL)

See more Gemfile

Utilities


Author





Fabiano Leite


Twitter Badge Linkedin Badge


License 📝

This project is under the license MIT.

Made with love by Fabiano Leite 👋🏽 Get in Touch!