/Django-Smart-RFID-Access-Control

this is a simple implementaion of rfid access with server checkups and logs

Primary LanguageCSSMIT LicenseMIT

Django Smart RFID Access Control

this is a simple example of communication between RFID gateway and server

python django sqlite Postgresql nginx docker bootstrap html5

Overview

demo

Features

  • Django LTS
  • Class Based views (ApiView)
  • Django RestFramework
  • User authentication
  • Black
  • Flake8
  • Responsive Design
  • Bootstrap5
  • heroku

Setup

To get this repository, run the following command inside your git enabled terminal

git clone https://github.com/AliBigdeli/Django-Smart-RFID-Access-Control.git

Build everything

The first time you run this it's going to take 5-10 minutes depending on your internet connection speed and computer's hardware specs. That's because it's going to download a few Docker images and build the Python + requirements dependencies.*

For Development:

docker compose up --build -d

For Actual Usage:

docker compose -f docker-compose-stage.yml up --build -d

Once the server is up and running, head over to http://127.0.0.1:8000 if you ran it in dev mode or else use your localhost or the server ip address for the App.

options

Project it self has the user creation form but still in order to use the admin you need to create a super user.you can use the createsuperuser option to make a super user.

docker compose -f docker-compose-stage.yml exec backend  sh -c "python manage.py createsuperuser"

Reformat and check

If you want your code to be check by pep8 and all the guide lines, there are two packages added to requirements in order to check and reformat code. you can use it by this command:

black -l 79 . && flake8

Database schema

A simple view of the project model schema.

database schema

Bugs or Opinion

Feel free to let me know if there are any problems or any request you have for this repo.