Skip to content

This is a project where a REST API server is developed using Django framework and a simple GUI using React JS.

License

Notifications You must be signed in to change notification settings

DanieleBocchino/django-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API using Django REST Framework

Python Django Django REST React Docker NGINX

This is a project where a REST API server is developed using Django framework and a simple GUI using React JS and docker.

Table of Contents

Project Overview

The Django Project is a web application that provides a RESTful API server using the Django framework. It also includes a simple graphical user interface (GUI) built with React JS. The application allows users to interact with the API server through the GUI, making it easier to consume the data.

Features

The Django Project includes the following features:

  • A REST API server built with Django framework
  • A simple GUI built with React JS
  • User authentication and authorization
  • Secure data storage using SQLite database
  • Create, Read, Update, and Delete (CRUD) operations on data

Installation

Backend

To install the Django Project, follow these steps:

  1. Clone the repository to your local machine
git clone https://github.com/your-username/django-project.git
  1. Navigate to the project directory:
cd django-project
  1. Create a virtual environment and activate it:
python3 -m venv env
source env/bin/activate
  1. Install the required packages using the requirements.txt file:
pip install -r requirements.txt
  1. Migrate the database:
python manage.py migrate
  1. Create a superuser:
python manage.py createsuperuser
  1. Run the Django server:
python manage.py runserver
  1. Open a web browser and navigate to http://localhost:8000/ to view the GUI.

Frontend

To install the React Project, follow these steps:

  1. Navigate to the frontend directory:
cd frontend
  1. Install the required packages using the package.json file:
npm install
  1. Run the React server:
npm start
  1. Open a web browser and navigate to http://localhost:3000/ to view the GUI.

Docker

To install the Django Project using Docker, follow these steps:

  1. docker-compose build
docker-compose build
  1. docker-compose up
docker-compose up
  1. Open a web browser and navigate to http://localhost/ to view the GUI.

Usage

Once the server is running, you can interact with the API server through the GUI. The GUI provides a user-friendly interface to view, create, update, and delete data. You can also use tools such as curl or Postman to interact with the API server directly.

Contributors

Daniele Bocchino

GitHub Followers
LinkedIn Connect

License

The Django Project is licensed under the MIT License.

GitHub License

GitHub Issues GitHub Stars GitHub Forks GitHub Contributors GitHub Last Commit

About

This is a project where a REST API server is developed using Django framework and a simple GUI using React JS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published