Skip to content

Woovi is a Startup that offer solutions on top of payments such as Pix and Credit Card.

Notifications You must be signed in to change notification settings

arthcc/woovi-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Woovi Challenge - Crud Bank GraphQL Relay

Woovi is a Startup that offer solutions on top of payments such as Pix and Credit Card.

Today we have two products: Woovi and OpenPix

Challenge

Our challenge is a replica of our day-to-day. The same consists of building a CRUD of a bank based on our technologies.

In addition to technology, the challenge takes you to immersion in a work routine at a startup. When talking about startup, understand that we are one because we are building something new and without definitions previously defined by other people. So our routine is to code reasonably well. But more than that, unlocking the business and making the best decision to deliver what the customer needs.

Challenge Stack

  • Backend: MongoDB, NodeJS, Koajs, GraphQL
  • Frontend: React, Relay
  • Tests: Jest

Backend

The backend must be a GraphQL API that handles all the required items above.

Stack: NodeJs, KoaJs, MongoDB, GraphQL

Plus: Use Node and Connection from Relay to handle get collection and lists.

Login and Register Mutations

  • It must have available a Mutation to register a new User.
  • This mutation must return the user logged in when successfully.
  • It must be available as a Mutation to log in as a User.
  • It must handle token authentication for login.
  • It must persist the token between requests.
  • It must create the token with JWT authentication.
  • The token is must be transferred by
  • It must create a user with an account

User Model

  • It must have a first name, tax id (cpf/cnpj field), and password.
  • The password must be encrypted.
  • It must not be possible to register more than one user with the same tax id.

Account Model

  • unique ID to be used as idempotency id.
  • account number.
  • user ID owner of account.
  • it must be able to have one account per user.
  • it must not be able to duplicate accounts.
  • it must have the calculation of balance using a ledger strategy.

Transaction Model

  • Sender: who is sending the money
  • Receiver: who is receiving the money
  • It must be idempotent
  • Value: in cents or decimal128

Deploy

The backend must be deployed where it can be accessible.

How to guarantee a better chance of being hired by backend?

  • Expose a GraphQL Playground
  • Generate a postman JSON to be able to import and make calls to the Backend GraphQL API
  • It uses graphql-HTTP
  • It has a test with Jest or a Test Runner of choice

About

Woovi is a Startup that offer solutions on top of payments such as Pix and Credit Card.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published