Git Product home page Git Product logo

2023-test-assignment-an-adtech-company's Introduction

Dima Pristupa: test assignment for an adtech company

About

Quick start

# Run the application
cp .env.example .env 
docker compose -f ./docker/db.yml --env-file ./docker/.env.db  up
cargo run --release # or `just start-prod`

# Call the run endpoint
curl localhost:8080/api/v1/run -v # or `just call-run`

# Get all request group entities
curl -u "api_user:not_qwerty_password" localhost:8080/api/v1/request_group/ -v
# Get all request entities
curl -u "api_user:not_qwerty_password" localhost:8080/api/v1/request/ -v

Tip: you can use the admin panel to view tables via http://localhost:9000

# Run all tests (unit & integration)
cargo test --features integration_tests # or `just test`

Local development

Additional dependencies:

$ just

馃敡 Available commands:
   路 start-prod         # Start the application (release build)
   路 start              # Start the application (debug build)
   路 start-watch        # Start the application (and watch for changes)
   路 migrator_cli *ARGS # Run migrator_cli (check `just migrator_cli --help`)
   路 test               # Run all tests (unit & integration)
   路 test-watch         # Run all tests (and watch for changes)
   路 format             # Format code
   路 lint               # Run a linter
   路 call-run           # Call /run endpoint

# Example
$ just start-watch

Ideas for improvement

2023-test-assignment-an-adtech-company's People

Contributors

s373r avatar

Stargazers

 avatar

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.