Skip to content

trouchet/chemie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApI

License Python Version FastAPI Version PostgreSQL Version

This is a minimal repository for a FastAPI app instance with:

  • Database: postgres;
  • ORM: SQLAlchemy;
  • Monitoring: prometheus.

Get started

For installation of packages on file requirements.txt, run the command on terminal according to your operational system.

  • Window/Linux/MacOSs:
    • Navigate to root folder;
    • Install with command run pip install -r requirements.txt.

Deployment

  • Change the environment variables on .env file;

    • Change variable ENVIRONMENT to production;
    • Change the non-test database credentials to your remote database configuration;
    • Change the variable SECRET_KEY to some trustworthy string;
  • Run command docker compose up;

You have to change them with a secret key, to generate secret keys you can run the following command:

python -c "import secrets; print(secrets.token_urlsafe(32))"

Copy the content and use that as password / secret key. And run that again to generate another secure key.

Documentation

This includes using Docker Compose, custom local domains, .env configurations, etc.

  • ( Normal ) Validate data insertion on database;
  • ( Hard ) Create endpoint for data import;
  • ( Hard ) Create routine for data processing (alternatives: Apscheduler/Celery).

API references

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published