Coder Social home page Coder Social logo

netflakes's Introduction

NETFLAKES

Netflakes is an assessment test from busha to consume and expose movie apis from [https://swapi.dev/api](https://swapi.dev/api) . The project is built using the ports and adapters pattern. This enables the components of the application to easily be replaced given that such components adhere to the specified interfaces.

Endpoints

BASE_URL: https://netflakes.herokuapp.com

Fetch Movies - GET

/api/movies

Add Comment - POST

/api/movies/:movie_id/add-comment

Request Body Sample

{ "body”: “This is a sample comment for testing purposes only….”, “created_by”: “Teej4y” }

Get Movie Comments - GET

/api/movies/:movie_id/comments

Get Movie Characters - GET

/api/movies/:movie_id/characters?sort_by=<height | gender | name>,order=<asc | desc>,filter_by_gender=<male | female>

POSTMAN COLLECTION

https://www.postman.com/cloudy-meteor-121927/workspace/busha-test/collection/11505765-553fb34e-317a-4cf7-ab28-9a13c4087173?action=share&creator=11505765

RUNNING THE PROJECT

To run the project on docker in a local environment, you would need to set the environment variables below as part of the docker env when creating the container using the -e flag. If the project, is ran locally, then an app.env file is needed to store the environment variables.

DB_HOST=localhost
DB_PORT=5432
DB_USER=teej4y
DB_PASSWORD=password
DB_NAME=netflakes
DB_URL="postgresql://root:secret@localhost:5432/netflakes?sslmode=disable"
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=password

IMPROVEMENTS

[ ] More test cases needs to be written to cover all or most of the functionalites [ ] Performance Metrics and evaluations could be added

netflakes's People

Contributors

adetunjii avatar

Stargazers

 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.