Skip to content

GeoffreyDlvl/SlowwwwwProcessingTimes

Repository files navigation

Slowwwww Processing Times

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact

About The Project

This project is a simple back-end implementation of the following exercice: https://www.notion.so/Back-Slowwwww-processing-times-a9f751385277466ca00e5ee0b69280dc

Built With

  • Flask
  • See requirements.txt to read about specific tools required to build and run the project.

Getting Started

Prerequisites

Be sure that python 3.9.6 and pip are installed on your system. All required dependencies are listed in requirements.txt. See Installation for detailed steps on how to create your virtual environment.

Installation

Instructions displayed in this file assume you are running the app on a Windows OS. If your system is different, simply replace the commands with the corresponding Unix/macOS equivalent.

  1. Clone the repo:
git clone https://github.com/GeoffreyDlvl/SlowwwwwProcessingTimes.git
  1. Create a new virtual environment:
py -m venv env

The environment is named env and can be activated with the following command:

.\env\Scripts\activate

Leave the virtual environment with the deactivate command.

  1. Automatically install all dependencies:
py -m pip install -r requirements.txt
  1. Export required environment variables:
.\setenv_windows_dev.bat 

If you are running on a linux system, run setenv_linux_dev.sh instead.

  1. Initialize / reset database:
flask init-db
  1. Start the application:
flask run

This will start a lightweight local development server on your machine. The application runs on localhost:5000.

Usage

This project is a back-end implementation. As a result, requests must be sent over HTTP if you want to interact with it. To illustrate the different routes and features available, we will be using Postman. It is advised to download the client to bypass web-browser limitations.

Upload an archive

Upload_archive

Check archive status

Info_archive

Crack an archive

Crack_archive

Mock behavior: waits for 10 seconds

Get jobs limit

Get_jobs_limit

Set jobs limit

Set_jobs_limit

Append some processing

Some_processing

Mock behavior: waits for 10 seconds.
Multiple processing operations can be added in a queue.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Geoffrey Delval <geoffrey.dlvl@gmail.com>
Project Link: https://github.com/GeoffreyDlvl/SlowwwwwProcessingTimes

Releases

No releases published

Packages

 
 
 

Contributors

Languages