This project is a carpentry application that utilizes both frontend and backend technologies.
This folder contains the frontend code developed with Vue.js and Vite.
For the best development experience, it is recommended to use VSCode with the Volar extension (and disable Vetur).
For customizing the frontend configuration, please refer to the Vite Configuration Reference.
To set up the frontend project, run the following command:
npm install
To compile and enable hot-reloading for development, run the following command:
npm run dev
To compile and minify the frontend code for production, run the following command:
npm run build
Run Unit Tests with Vitest
To run unit tests using Vitest, execute the following command:
npm run test:unit
Lint with ESLint
To lint the frontend code using ESLint, run the following command:
npm run lint
This folder contains the backend code developed with Django.
For detailed documentation on working with Django, please refer to the Django documentation.
To install Django, you can use pip:
pip install django
To create a new Django project, run the following command:
django-admin startproject project_name
Replace project_name
with the desired name for your project.
To start the development server, navigate to the project directory and run the following command:
python manage.py runserver
This will start the server at http://localhost:8000/
.
To create a new Django app within your project, run the following command:
python manage.py startapp app_name
Replace app_name
with the desired name for your app.
Django supports multiple databases. You can configure the database settings in the settings.py
file of your project.
Django provides a built-in migration system to manage database schema changes. To create and apply migrations, use the following commands:
python manage.py makemigrations
python manage.py migrate
Django provides an admin interface for managing your application's data. To create a superuser account, run the following command:
python manage.py createsuperuser
You can then access the admin interface at http://localhost:8000/admin/
.