Giter Site home page Giter Site logo

tvmaze's Introduction

README

Develop requirements

* python 3.11
* poetry
* docker-compose

Use poetry to manage project, check poetry for usage details

poetry env use 3.11
poetry install --sync --no-root

Build Image

make image

Start/Stop develop environment

make start_dev
make stop_dev

Swagger/Redoc API Documents

  • swagger: http://localhost:8080/docs
  • redoc: http://localhost:8080/redoc

Configuration

application is configed by environments. Most of them have default values. Check docker-compose.yml for the values needed to be set

    TESTING: Optional[str] = None
    API_STR: str = "/api"
    PROJECT_NAME: str = 'tvmaze'
    API_KEY: str = secrets.token_urlsafe(64)
    SECRET_KEY: str = secrets.token_urlsafe(32)
    DEFAULT_JOB_COUNTRY: str = 'US'
    SQLALCHEMY_DATABASE_URI: str = 'sqlite://'
    REDIS_HOST: Optional[str] = None
    REDIS_PORT: int = 6379
    ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * 7
    SMTP_TLS: bool = True
    SMTP_PORT: Optional[int] = None
    SMTP_HOST: Optional[str] = None
    SMTP_USER: Optional[str] = None
    SMTP_PASSWORD: Optional[str] = None
    EMAILS_FROM_EMAIL: Optional[EmailStr] = None
    EMAILS_FROM_NAME: Optional[str] = None
    EMAIL_TO: Optional[EmailStr] = None

Start/Stop application

make start
make stop

Generate sample data

make gen_sample

Unit test

make test

tvmaze's People

Contributors

hilr avatar

Watchers

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