Git Product home page Git Product logo

currency's Introduction

Currency App

There are some requisites to run the application

Lint the Challenge

  • The command to lint a specific package is the following:

      $ make lint pkg=routes
  • Hovewer, if you want to lint all packages, then run:

      $ make lint

Test the Challenge

There are some commands to run, and test the challenges:

  • If you want to test a particular test case then use the following example:

      $ make test pkg=./routes name=TestCompanyRoute_WithWrongLegacyHeaders | tee log.json

    Note~> you can see the test command is the main of this and then the pkg tells what package it would be tested, and finally the name of the test case. If you want to save the test result you can add the pipe and the file name as the above example.

  • If you want to run all test cases just run the following command:

      $ make test | tee log.json

Build and Run

Before to build the project is necessary have docker runing, there are some ways to run the app, the first one is to run the docker-compose.yaml file, which consist in the following steps:

  • First make the docker image of the application with the following command:

    $ make docker-build service=currency version=1.0.0-test
    

    Note: you can use the version you want.

  • Second is re-write the docker-compose in the app section to put the version you have created in the previous point, then run the docker-compose:

    $ docker-compose up 
    

    Note: you can run it using the -d argument to run it in background mode.

    You might see the app is starting before the database, no worry about it, this is because we are running some sql queries, but be sure start using the app until the database process finish.

    Well, that's it...

currency's People

Contributors

pacodw avatar

Watchers

 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.