Giter VIP home page Giter VIP logo

sunfi_challenge's Introduction

Project: Sunfi Challenge

Setup

  • To begin, clone this repository git clone
  • Without Docker
    • Run makemigrations with python manage.py makemigration
    • Run migrations with python manage.py migrate
    • Start local server with python manage.py runserver
    • Open browser and go to http://127.0.0.1:8000/
  • With Docker
    • To begin, run docker-compose up --build -d
    • Run migrations with docker-compose exec api python manage.py migrate
    • Run test with docker-compose exec api coverage run -m pytest
    • Generate html report with docker-compose exec api coverage html
    • Open browser and go to http://127.0.0.1:8000/

MVP test coverage: 100%

  • Run the tests with coverage:
$ coverage run -m pytest
$ coverage html
$ open htmlcov/index.html

### Lint Check
```sh
$ flake8 .
$ black .
$ isort .

Feature List

  • A new user can be signup

  • Users of the system can sigin with their email and password

  • An Authorization token is generated on successful login - which is to be added as an Authorization header to requests that need authentication

  • Signed in user can:

    • Get list of characters
    • Get list of character's quote
    • Get character's quote details
    • Get character's details
    • Get list of users
    • Favorite a character
    • Favorite a character's quote

Suggestions

  • character id to be added as favorite ought to be passed in as a request body

  • character_id and quote_id to be added as favorite ought to be passed in as a request body Engineering-Backend-Opportunities-Instruction

Mentions

This project was given a development head start with some of my packages DRF Compose (https://github.com/IamAbbey/drf_compose) and py-sync-dotenv (https://github.com/IamAbbeypy_sync_dotenv) to seemlessly synchronizing .env files across the projects.

sunfi_challenge's People

Contributors

iamabbey avatar slightlynerd 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.