Giter Site home page Giter Site logo

desafio-database-upload's Introduction

Desafio GoStack #6

๐Ÿ“• About

The main objective of this challenge is to insert records to the database through file import.

โšก Techs

  • Node.js - evented I/O for the backend
  • Express - fast node.js network app framework
  • Typescript - typed superset of JavaScript that compiles to plain JavaScript.
  • TypeORM - an ORM that can run in Nodej, browser, Cordova, PhoneGap, Ionic, React Native, NativeScript, Expo, and Electron platforms and can be used with TypeScript and JavaScript
  • Yarn - package manager that doubles down as project manager.

๐Ÿ’ป Installation

Docker

With docker hub installed, follow the commands:

$ docker run --name gostack_postgree -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgrees

$ docker start gostack_postgree

Start server

Install dependencies and start the server.

$ yarn
$ yarn dev:server

If you want to see the unit testing ๐Ÿ˜Š

$ yarn test

what he expects

$ cross-env NODE_ENV=test jest
 PASS  src/__tests__/Transaction.spec.ts
  Transaction
    ๐Ÿ“Œ should be able to list transactions
    ๐Ÿ“Œ should be able to create new transaction
    ๐Ÿ“Œ should create tags when inserting new transactions
    ๐Ÿ“Œ should not create tags when they already exists
    ๐Ÿ“Œ should not be able to create outcome transaction without a valid balance
    ๐Ÿ“Œ should be able to delete a transaction
    ๐Ÿ“Œ should be able to import transactions

desafio-database-upload's People

Contributors

willfeliz1 avatar

Watchers

James Cloos 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.