Create your artistic portfolio in minutes
- Python 3.13
- Postgres
- Nodejs 20
# prepare and activate virtual environment
python -m venv venv
source venv/bin/activate
# install python dependencies
pip install -U pip
pip install -r requirements/dev.txt
# prepare (+edit) and load env variables for development
cp .env.dev .env
source .env
# prepare database
psql -U postgres postgres -c "CREATE ROLE tumbs SUPERUSER LOGIN"
psql -U postgres postgres -c "CREATE DATABASE tumbs OWNER=tumbs"
# populate database
python manage.py migrate
python manage.py createsuperuser
# install js dependencies
npm install
# run development servers
make dev
pip install -r requirements/test.txt
make test
make msg-make # Collect strings for translation
make msg-compile # Compile translation catalogues
In development, it is often nice to be able to see emails that are being sent from your application. If you choose to use Mailpit when generating the project a local SMTP server with a web interface will be available.
-
Download the latest Mailpit release for your OS.
-
Copy the binary file to the project root.
-
Make it executable:
$ chmod +x mailpit
-
Spin up another terminal window and start it there:
./mailpit
-
Check out http://127.0.0.1:8025/ to see how it goes.
Now you have your own mail server running locally, ready to receive whatever you send it.
Copyright © 2024 Ondřej Nejedlý
Distributed under the Apache 2.0 License with Commons Clause License Condition 1.0