Skip to content

Receives tags information from the reader and stores in the database. Using Django Rest Framework.

Notifications You must be signed in to change notification settings

mehhran/rfid-tag-django-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rfid-tag-django-api

Receives tags information from the reader and stores in the database. Using Django Rest Framework.

To run the project (Windows PowerShell commands):
  1. Make sure you have Python installed
…\rfid-tag-django-api> py -V
Python 3.9.6
  1. Create a python virtual environment
…\rfid-tag-django-api> py -m venv env
  1. Activate the virtual environment
…\rfid-tag-django-api> .\env\Scripts\Activate.ps1
  1. Install the required modules from requirements.txt
(env) …\rfid-tag-django-api> pip install -r .\requirements.txt
  1. Create a file named secrets.py, in the 'tagsProject' directory, for storing the Django Secret Key (and maybe other secrets later)
(env) …\rfid-tag-django-api> New-Item -Path .\tagsProject\ -Name "secrets.py" -Value "DJANGO_SECRET_KEY = 'django-insecure-a-random-generated-key'"
Note: make sure you have 'secrets.py' in the .gitignore file
  1. Migrate and run
(env) …\rfid-tag-django-api> py .\manage.py makemigrations
(env) …\rfid-tag-django-api> py .\manage.py migrate
(env) …\rfid-tag-django-api> py .\manage.py runserver

About

Receives tags information from the reader and stores in the database. Using Django Rest Framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages