Giter Site home page Giter Site logo

2n-it / it-reviews-trb Goto Github PK

View Code? Open in Web Editor NEW
3.0 6.0 2.0 1.14 MB

Open Source Web Application to add and review articles/books related to IT subjects. Main goal of app is to learn writing Ruby application using Trailblazer

Ruby 84.97% JavaScript 5.51% CSS 0.99% HTML 8.53%

it-reviews-trb's Introduction

it-reviews-trb

Open Source Web Application to add and review articles/books related to IT subjects. Main goal of app is to learn writing Ruby application using Trailblazer

it-reviews-trb's People

Contributors

pyrinandrii avatar pansarin avatar dependabot[bot] avatar krzykamil avatar kamilmilewski avatar

Stargazers

 avatar Bogusław Tolarz avatar Hermann Harris avatar

Watchers

Bogusław Tolarz avatar  avatar James Cloos avatar Hermann Harris avatar  avatar  avatar

Forkers

pyrinandrii

it-reviews-trb's Issues

#4 Add rspec to the project

Since the goal is to write the best possible code, we need to cover all our code with the test. We will use RSpec to do that.

#8 As an user I would like to be able to add new book to the system.

The book should have:

  1. Author *
  2. Title *
  3. Publisher
  4. Categories

Categories will be created in seeds:

  • General Programming Principles
  • Design Patterns
  • Basic of programming
  • .net
  • c
  • c++
  • c#
  • java
  • javascript
  • php
  • python
  • ruby
  • r
  • scala
  • haskel
  • elixir
  • erlang
    ( if you will figure out some others please add them ;] )

The book should have validation to unique pair of author and title.

    • ale required

#6 Create endpoint to create user

  1. Write controller test that will check if controller calls for User::Operation::Create and pass parameters parsed by strong params.
  2. Write test that will check:
  • if controller return 200 if Operation result will be success ( stub Operation result instead of calling whole Operation and Contrct)
  • if controller return 400 if data is invalid and return validation errors in json response
  1. Implement controller endpoint that will call for User::Operation::Create with params from request, and return proper response

#2 Add trailblazer 2.1

Since our application will be written in trailblazer we need to add this gem to the project.

#5 Create trailblazer operation & contract to create user

  1. Write tests that will cover those cases:
  • valid data:
    • user was created & result is success
    • email with confirmation link was sent
  • invalid data ( email / password is blank or nil )
    • user was not created & result is failure
    • none email was sent
  1. Implement operation & contract which will make above tests to pass

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.