Giter VIP home page Giter VIP logo

filed_audio_server's Introduction

Audio File Server to save audio based on the type

FILED PROGRAMMING EXERCISE

Requirements

This Project is developed using Flask and SQLAlchemy.

How to run project locally

Clone repository and got to project's root directory afterwards follow steps:

  1. Activate python virtual environment
    source /path/to/local/env/activate

  2. Install requirements
    pip install -r requirements.txt

  3. 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.
  4. Run app
    python app.py


Structure


├── 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

GET ──> /api/v1/audio-files/<audio_type>

Shows the list of all the audios in that audio_type from the local database.

POST ──> /api/v1/audio-files/

Fetches the audio_type and audio_meta_data from request api and save it in the particular table of the local database.

DELETE ──> /api/v1/audio-files/<audio_type>/<audio_file_id>

Deletes the record of the requested type and requested id from the respective table.

Update ──> /api/v1/audio-files/<audio_type>/<audio_file_id>

updates the record of the requested type and requested id from the respective table.

GetByID ──> /api/v1/audio-files/<audio_type>/<audio_file_id>

Fetches the requested type and requested id data from the respective table.

filed_audio_server's People

Contributors

vivaan998 avatar

Watchers

 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.