Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Django API

python calculator

This repository contains a simple Django REST Framework project that provides an API for managing service endpoints. The project was developed as part of my portfolio. It is a simple project, but it is a good example of how to build a REST API using Django.

How To Run

To run this project, you will need to have Python 3.10 or later installed. If you don't have it, you can download it from the official website. You will also need to have pip installed. If you don't have it, you can follow the instructions on the official website. With Python and pip installed, you can follow the steps below to run the project:

  1. Clone the repository:
git clone
  1. Navigate to the project's directory:
cd simple-django-api
  1. Create a virtual environment:
python -m venv .venv
  1. Activate the virtual environment:
source .venv/bin/activate
  1. Install the project's dependencies:
pip install -r requirements.txt
  1. Run the migrations:
python manage.py migrate
  1. Run the development server:
python manage.py runserver
  1. Access the API at http://localhost:8000/api/.
  2. Access the admin interface at http://localhost:8000/admin/.

API Endpoints

The API provides the following endpoints:

  • GET /api/: returns a list of all services.
  • POST /api/: creates a new service.

How to Contribute

Contributions are always welcome! Here's how you can get involved:

  • Report any bugs or issues you encounter.
  • Suggest new features or enhancements to improve the project.
  • Submit pull requests with code improvements or fixes.

We appreciate your contributions and feedback to make this project better!

License

This project is released without a license. You are free to use it for any purpose.

About

Showing how to create a simple Django API.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages