Code Monkey home page Code Monkey logo

octopus-challenge's Introduction

Octopuslabs Challenge Build Status codecov

This is my solution to the technical challenge by Octopuslabs.

Running the project

Running the project will spin up 4 docker containers:

  • A Tornado web application
  • A Celery worker that takes care of the asynchronous tasks that power this project
  • A MySQL server to persist the application's data
  • A Redis server to act as IPC vehicle between the web application and the Celery workers

The repo includes some throwaway settings and keys, to be able to hit the ground running.

Spin un up the containers with:

docker-compose up

Requirements:

  • Docker >= 17.09.0
  • Docker Compose >= 1.21.0

Running with custom settings:

The project's configuration is set through environment variables.

For more information about each of the configurable paramaters, read their documentation in backend/config.py

Handling secrets securely

  • Avoid including production secrets in the repo
  • Avoid including production secrets in the container build
  • Environment variables should be a non-terrible way to inject sensitive information when launching the services
  • Docker Secrets should be the preferred alternative, if the infrastructure permits, since it handles most of the security for us.. I've made the decision of using Docker Secrets in this version of the project

Hacking on the project

In order to hack on the project you'd:

  • Clone the repo
git clone https://github.com/lalvarezguillen/octopus-challenge
  • Setup a virtual environment
virtualenv .env
  • Install dependencies
pip install -r requirements.dist.txt -r requirements.dev.txt
  • Run the tests to make sure everything is working. A bash script has been included for convenience:
bash run_tests.sh
  • Break things up

The project has been formatted with Black, and I've deferred every code styling decision to that library.

Requirements

  • Python >= 3.6
  • NodeJS
  • MySQL

TODO

  • JS unittests
  • Functional tests with Selenium

octopus-challenge's People

Contributors

lalvarezguillen 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.