This Project is developed using Flask and SQLAlchemy.
Clone repository and got to project's root directory afterwards follow steps:
-
Activate python virtual environment
source /path/to/local/env/activate
-
Install requirements
pip install -r requirements.txt
-
Create Database schema named
audio-file-server
- To use pre-populated data for testing, go to
Sql directory and use the dump to populate data.
- To use pre-populated data for testing, go to
-
Run app
python app.py
├── app.py # Application entry point
├── sql # SQL dump to init database and tables
├── config.py # includes configurations for DB
├── src
│ └──audio-file
│ │ └── api.py # REST api definition
│ │ └── audio.py # Core functions
│ │exceptions
│ │ └── app_exception.py # Execptions are written over here
│ └──models.py # SQLAlchemy models
│ └──serializer.py # Serializing the input and output data
├── test
└── postman # Includes Postman tests
Shows the list of all the audios in that audio_type from the local database.
Fetches the audio_type and audio_meta_data from request api and save it in the particular table of the local database.
Deletes the record of the requested type and requested id from the respective table.
updates the record of the requested type and requested id from the respective table.
Fetches the requested type and requested id data from the respective table.