For security reasons, the external database used by this application is not publicly accessible. If you want to fully interact with this app (create, update, or delete data), you can contact me (+52 246-239-2759) so database access can be temporarily enabled. Otherwise, if the Aiven database is not enabled, no commands will work and the project will not function, even if it has been correctly cloned from GitHub.
- Create a virtual environment with Python of your choice and activate it.
- It is common to create it in C:// (in Windows, for example)
- Go to the folder that contains the requirements file.
- Run
pip install -r requirements.txt.
- Go to the
financialfolder (the one that contains themanage.pyfile). - Run
python manage.py makemigrationsto create the migrations in the DB. - Run
python manage.py migrateto migrate the data.
The Django admin panel is currently not enabled for this project. At this moment, the admin interface is not required and will not be useful for interacting with the application.
For this reason, creating a superuser is optional and not necessary to run or test the project features.
- Go to the
financialfolder (the one that contains themanage.pyfile). - Run
python manage.py createsuperuser. - Answer the questions that will be prompted in the terminal.
- Access to "localhost:8000/admin/".
- Login and check everything is fine.
- Go to the
financialfolder (the one that contains themanage.pyfile). - Run
python manage.py runserver.
Project Architecture
This project is composed of two main applications:
🔹 App 1 (consuming_api) – External API (Postman usage)
Backend application developed with Django REST Framework, designed to interact with the external REST Countries API. Intended to be used directly from Postman. Includes documentation (Check the "Documentation_file.md" to handle the consuming_api app) explaining how to perform requests from scratch. No additional database configuration is required for basic usage.
Demostrative video - https://www.youtube.com/watch?v=dwlroKgd7Dw
🔹 App 2 (ecommerce) – Backend API + Frontend Client
Backend application developed with Django REST Framework, built from scratch and designed to be consumed by an external frontend client developed with JavaScript and Bootstrap.
The backend manages custom models, static file handling (including image uploads), and communication with an external database.
The project is configured to allow interaction with a frontend client deployed on Vercel.
The frontend vercel link allows users to visualize and interact with the application.
Once you have confirmed that the server is running correctly by executing python manage.py runserver without any issues, and the server is successfully running in your terminal, you can access the following link to test all functionalities from the frontend client, which will interact with your locally running Django backend server: https://online-ecommerce-ten.vercel.app/
Demostrative video - https://youtu.be/LYhuUxPeQl4