Giter Site home page Giter Site logo

automata-backend's Introduction

Automata

Personal scripts for automation of everyday tasks using best practices with reference notes.

codecov CircleCI security: bandit License: MIT

Prerequisites

Clone repository

git clone https://github.com/maferelo/automata.git
cd automata

For Mac

bash scripts/prestart-mac.sh

Development

We use remote containers.

  1. Press F1 to open the Command Palette.
  2. Type reopen in container.
  3. Select Remote Containers: Reopen in Container from the list of available options.

Inside the container run:

poetry run app

Check the endpoint

curl --location --request GET 'http://localhost:8000/'

Linting

pre-commit run --all-files

Dependencies

Use the package manager poetry to install requirements

poetry add darglint --group dev

Database migrations

Using Alembic

Change models and commit

alembic revision --autogenerate -m "<message>"
alembic upgrade head

Tests

nox --session tests -- tests/test_console.py

End to end testing

nox -s tests -- -m e2e

Deployments

Using Heroku Create staging and production apps

heroku apps create automata-backend
heroku stack:set -a automata-backend heroku-20
heroku buildpacks:add -a automata-backend \
  https://github.com/moneymeets/python-poetry-buildpack.git
heroku buildpacks:add -a automata-backend heroku/python
heroku config:set POETRY_VERSION=1.3.1
heroku login
git push heroku main
heroku open
heroku logs --tail

References

automata-backend's People

Contributors

maferelo avatar mfrestrepo-carvana 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.