A small template for vite and django
For linux;
for the frontend;
- run git clone git@github.com:NobleSalt/my-vite-django-template.git
- run cd frontend
- run npm i && npm run dev
Inside the frontend folder Do this to build the project and attach it to your django backend automatically from your frontend folder
- run sudo chmod +x build && ./build
for the backend;
- run cd backend
create a virtualenv, activate and install the requirements for the project
-
run python3 -m venv env && source env/bin/activate && pip install -r requirements.txt
-
run python manage.py runserver
-
open the link (localhost:8000) on your browser