Coder Social home page Coder Social logo

quentin's Introduction

Project icon

Quentin

Movie information discord bot

Version badge



Invite

To add the bot to your discord server use this invitation.

Development And Configuration

This section explains step-by-step the service configuration and running.

Primary dependecies

To configure the service, first of all you should get two kinds of tokens from base platforms thaht powers the software:

There are two basic ways to run this service:

  • *Local machine:
    • It is suggested for development;
  • Docker:
    • It is suggested for production;
    • It is suggested when the environment or dependencies are not possible to configure on local machine;

Run in local machine

Local dependencies:

You smust have these dependencies installed on your machine:

  • Python >= 3.8
  • Redis-server
  • Mysql-server

The service is a python based software, so you have to create a python virtual environment to install the requirements, so, create and python venv, export a global environment variable to development and install the requirements from Makefile:

$ mkvirtualenv quentin
$ (quentin) export ENV_REF=development
$ (quentin) make install

Create a copy of the environment file template in quentin/environment/export_template and fill the values for the variables, such as the database user, host and passwords, the source the environment file you just created:

$ source quentin/environment/my_env_vars

Migrate the database:

$ make migrate

Finally run the service:

$ make run

Run in Docker

Local dependencies:

  • Docker
  • Python-pip

Install docker-compose from pip:

$ pip install docker-compose

Create an encironment file called quentin_env from the template in quentin/environment/docker_template and fill the blank variables, at the end you should have a filled env file in quentin/environment/quentin_env. Docker compose will look for the mentioned file in the mentioned directory. build and run the container:

$ docker-compose build && docker-compose up

Testing

For testing you should follow the steps for running the service in your local machine, above described. In a virtual env, install the requirements and fill your env vars to set up database configurations, then run tests from makefile:

$ make test

References

- Quentin image:

Image by Vectorportal.com, CC BY; Shmector

- The Movie Database API

Powered by:

API Backend

TMDB

quentin's People

Contributors

brunolcarli avatar

Watchers

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