GithubHelp home page GithubHelp logo

tickie's Introduction

tickie

Organise events fast and efficiently

Where to start?

If you need a quickstart, please look at pyproject.toml first. It includes configuration of most tools. Secondly, you should look into Dockerfile and Pipfile.

Linting and formatting

This project Ruff for code formatting and linting, an extremely fast tool, to ensure consistent and clean code.

To format your code using Ruff, run:

ruff format .

To lint your code using Ruff, run:

ruff check .

or use it in watch mode

ruff check . --watch  # Automatically re-run on file changes

Furthermore we use DjHTML to lint our Django templates. To lint your templates using DjHTML, run:

djhtml .

Environments and .env

There are multiple environment files to make the project usable in different scenarios:

  • development.env: This is the file with all settings to develop locally and is used with and without Docker.
  • unittest.env: This is the file with all settings to speed up tests. It's used for pytest.
  • docker-compose.env: This file is only used by Docker Compose for development with Docker.
  • .env: There is no .env file because the defaults for all settings are defined in the settings-file and thy only need to be changed in the cases above (or in the Helm Chart for production usage).

Installing or updating packages with pipenv

The easiest option โ€“ as long as you do not have any special things going on โ€“ is to run pipenv locally:

pipenv update

If you need to run it in Docker, this can be done like that:

docker exec -it tickie-backend bash
pip install pipenv
    Installing collected packages: pipenv
      WARNING: The scripts pipenv and pipenv-resolver are installed in '/src/.local/bin' which is not on PATH.
      Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
/src/.local/bin/pipenv update

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.