Giter Site home page Giter Site logo

app_todo_list's Introduction

Aplicación RoR

Ruby on Rails TEST

Requirements

  • Use PostgreSQL
  • Use Devise
  • Use RSpec for testing (unit testing)
  • Use FactoryBot and Faker
  • Must be multilanguage. (spanish and english).
  • All error messages should be also translated

Work To Do

  1. Create an authentication mechanism, with Bearer access token (JWT) with devise support
  2. Create the necessary models for a user and group based to-do list app
  3. Create the necessary API endpoints to manage the to-do lists and share items with your group or other users
  4. The endpoints must support the selection via params of the attributes to be returned (eg. Only name and ID, instead of name, id, description, due_date, etc...)

The work must be completed on 3 days max. And include all test based on rspec

Stack:

  • Ruby 2.6.0
  • Rails 5.2.4
  • PosgreSql 9.*
  • TDD Rspec

Instalación Proyecto

  • Clonar repositorio
  • Realizar configuracion Base de Datos
config/database.yml
  • Instalar dependencias
bundle install 
  • Correr migraciones
rails db:migrate
  • Correr pruebas Rspec
bundle exec rspec
  • Resultado pruebas
Finished in 1.87 seconds (files took 4.21 seconds to load)
29 examples, 0 failures
  • Inicializar Rails
rails s
Para Probar Api TodoList correr los EndPoints
POST localhost:3000/groups 

{
	"name": "Grupo 2"
}
POST localhost:3000/signup

{
	"user": {
		"email": "[email protected]",
		"password": "123456",
		"group_id": 1
	}
}
POST localhost:3000/tasks
{
	"name": "Tarea 1",
	"description": "Finalizar Tarea",
	"user_id": 1,
	"type_share_item": 2
}
GET localhost:3000/tasks
{}
GET localhost:3000/groups
{}
GET localhost:3000/task_list_by_group
{
	"group_id": 1
}
GET localhost:3000/task_list_by_user
{
	"user_id": 1
}}

app_todo_list's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.