This is the beginning of a site for brand that allows users to subscribe to a newsletter.
The backend runs in Docker and uses Poetry to manage dependencies.
Install the following systems before starting
Now to start the system:
poetry install
-- install dependencies locallydocker compose build
-- Build the docker image for the web serverdocker compose up
-- Start the web server
And for development:
pre-commit install
-- Install the pre-commit hookspoetry shell
-- Start the poetry shell
The frontend uses TailwindCSS, which watches for changes in Django templates and automatically recompiles the CSS.
To start the CSS watcher:
make watch-css
To have the files served by Django, you need to create a symlink to the relevant files from the static folder. Note this setup is in no way production safe, and should be replaced by proper static files serving as per Django's documentation.
cd static
ln -s ../frontend/build.css build.css
ln -s ../frontend/node_modules/flowbite/dist/flowbite.min.js flowbite.js
- See the
Makefile
for other commands, such asmake test
to run the tests.