Daily aggregate for Music Streams from Uploaded CSV file.
python 3.9 and the Flask framework and uses mongodb
Docker installation and a running daemon
- This will require Docker to be already Installed. And its a shorter process compared to the second option.
Clone the repository
git clone https://github.com/peterwade153/Vibely.git
-
Start the Docker deamon on the machine if its not running already.
-
Updates Environment variable. Create a
.env
file from the.env-sample
and replace thm with actual varibles. -
Change directory to the folder where the project is cloned and run the command below.
docker-compose up
Docker will spin up containers and after the API endpoints can be accessed. Via http://localhost:8080/
The use a tool like postman to access the endpoints below.
Request | Endpoints | Functionality |
---|---|---|
POST | /upload | Upload file csv format (select binary for body in postman, click select file to upload file and send) |
GET | /download/task-id | Downloads daily aggregated data in csv format |