Install the project on your machine by following the steps outlined below.
Create a new terminal window, navigate into back_end/, create, activate a virtual environment, and install the necessary dependencies:
$ python -m venv venv
$ source venv/bin/activate
(venv) $ python -m pip install -r requirements.txtThen, create the initial Django database by running migrations:
$ python manage.py migrateCreate a Django superuser:
$ python manage.py createsuperuserRun the Django project:
$ python manage.py runserverBefore continuing, it's a good idea to create some users, profiles, and blog posts in the Django admin interface at http://localhost:8000/admin. You must use your superuser credentials to log in.
You can visit the GraphiQL platform http://localhost:8000/graphql to try out GraphQL queries.
Open a new terminal and navigate into front_end/. Then, install the front-end requirements:
$ npm install --include devRun the Vite development server:
$ npm run devYou must have the Django development server and the Vite server running at the same time.