This is a project where a REST API server is developed using Django framework and a simple GUI using React JS and docker.
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.
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
To install the Django Project, follow these steps:
- Clone the repository to your local machine
git clone https://github.com/your-username/django-project.git
- Navigate to the project directory:
cd django-project
- Create a virtual environment and activate it:
python3 -m venv env
source env/bin/activate
- Install the required packages using the requirements.txt file:
pip install -r requirements.txt
- Migrate the database:
python manage.py migrate
- Create a superuser:
python manage.py createsuperuser
- Run the Django server:
python manage.py runserver
- Open a web browser and navigate to http://localhost:8000/ to view the GUI.
To install the React Project, follow these steps:
- Navigate to the frontend directory:
cd frontend
- Install the required packages using the package.json file:
npm install
- Run the React server:
npm start
- Open a web browser and navigate to http://localhost:3000/ to view the GUI.
To install the Django Project using Docker, follow these steps:
- docker-compose build
docker-compose build
- docker-compose up
docker-compose up
- Open a web browser and navigate to http://localhost/ to view the GUI.
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.
The Django Project is licensed under the MIT License.