GithubHelp home page GithubHelp logo

nanacnote / diaryofapolymath Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.01 MB

Personal blog

License: Creative Commons Zero v1.0 Universal

Python 51.82% HTML 15.03% CSS 25.77% Shell 5.08% JavaScript 2.30%

diaryofapolymath's Introduction

Diary of a Polymath

An extension of my mind

Requirements

Node 16

Python 3.9

Pipenv 2021.5.29

Docker

At least 2GB of memory, especially for docker image build container (pyscopg is built from source and has this requirement). See docker memory docs.

Setup

git clone https://github.com/nanacnote/diaryofapolymath.git
cd diaryofapolymath
chmod +x ./run
cp .env.example .env
npm i
pipenv install --dev
pipenv shell
pre-commit install

Run

Manual

pipenv shell
export APP_ENV=development          # [development] [production] [test]
export PYTHONPATH="./src:${PYTHONPATH}"
export DJANGO_SETTINGS_MODULE="base.settings.${APP_ENV}"
django-admin runserver
npm start

Preferred

./run start:dev                     # Start both Django and Vite servers.
./run start:django:debugger         # Start the Django server in pdb (debugger) mode.

Linting

./run start:lint                    # Scan the codebase and report any linting issues.
./run start:lint:fix                # Scan the codebase and automatically fix any linting issues.

Test

./run start:test                    # Run tests using pytest. Additional arguments can be passed.

Release

./run start:release                    # In CI, tag the main branch with a release version number and include a change log.

Commit Strategy

Pre-commit hooks are in place to enforce consistent commit messages.

Hook

Specification

SCM Strategy

Main branch

  1. The production site is deployed from this branch.
  2. Only the staging branch can be merged into the main branch.

Hotfix branch

  1. No deployment from this branch.
  2. Hotfix branch must always be kept up to date with staging before branching from it.
  3. Branch from hotfix to start implementing a fix for a bug reported on the staging branch.
  4. After implementing the bug fix, open a PR to the hotfix branch.

Staging branch

  1. The staging site is deployed from this branch.
  2. Only the hotfix branch and the develop branch can be merged into the staging branch.

Develop branch

  1. No deployment from this branch.
  2. Branch from develop to start implementing a new feature.
  3. After fully implementing the feature, open a PR to the develop branch.

diaryofapolymath's People

Contributors

nanacnote avatar

Watchers

 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.