This guide walks you through everything needed to run Gobarau Academy Backend on your local machine and make your first authenticated API call. By the end you will have a running Django development server, a superuser account, and a working JWT access token you can use to explore all API endpoints. The whole process takes under ten minutes on a standard developer workstation.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/muhammadbugaje/gobarau_backend/llms.txt
Use this file to discover all available pages before exploring further.
Create and Activate a Virtual Environment
The project requires Python 3.12. Create and activate a dedicated virtual environment to keep dependencies isolated.Linux / macOS:Windows (PowerShell):
The repository may already include a
venv/ directory. If it does, you can activate it directly with the commands above instead of creating a new one.Install Dependencies
With the virtual environment active, install all required packages:This installs Django, Django REST Framework,
djangorestframework-simplejwt, Cloudinary storage, django-unfold, CORS headers, and all other project dependencies declared in requirements.txt.Configure the Database
Apply all Django migrations to create the SQLite database schema. This sets up every table across all 10 apps:You should see output confirming that each migration has been applied. The database file
db.sqlite3 will be created in the project root.Create a Superuser
Create an admin account that you will use to log in to the Django admin panel and to obtain your first JWT token:Follow the prompts to set a username, email address, and password. Once created, you can access the admin panel at http://127.0.0.1:8000/admin/.
Start the Development Server
Launch the Django development server:The API will be available at http://127.0.0.1:8000/. You should see the Django REST Framework browsable API if you visit any API endpoint in your browser.
Obtain a JWT Token
Gobarau Academy Backend uses Once added, obtain an access and refresh token pair by posting your credentials:A successful response returns both tokens:Copy the
djangorestframework-simplejwt for authentication. To enable token endpoints, add the following URL patterns to your project’s gobarau/urls.py:access token — you will use it in the Authorization header for every subsequent request.See the Authentication guide for full details on token lifetimes, refreshing expired tokens, user roles, and the permission classes that control endpoint access.
Make Your First Authenticated API Call
With your access token in hand, call a protected endpoint. The following example retrieves the list of academic sessions from the Administration module:Replace
<your_access_token> with the access value from the previous step. A 200 OK response confirms your setup is working end-to-end.