Welcome to Salecodes!
Salecodes is an open-source personal website being actively developed using Django and Tailwind CSS.
-
Create an
.env
file based on the.env.example
file. -
Build the image and run the container:
docker compose up --build
- python@3.11
- npm@10.5.0
-
Activate your workspace virtual environment.
-
Install pip-tools:
pip install pip-tools
-
Either use Make:
make update
Or compile local project + dev requirements file and install packages from compiled requirements file:
pip-compile --allow-unsafe --strip-extras -q --upgrade -o requirements-local.txt -r requirements.in -r requirements-dev.in pip-sync requirements-local.txt
Install dependencies:
npm install
-
Run only tests (via pytest and xdist plugin):
pytest -n auto
-
Run the complete test suite (pytest, coverage, mypy, etc.):
tox -e local
(See tox l
for more available tox environments.)
Run make
to see the available commands.
Compile styles from input (styles.css) to output file (output.css):
npx tailwindcss -i ./static/css/styles.css -o ./static/css/build.css --minify