Skip to content

Taewan-P/jaram-attendance

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JARAM ATTENDANCE CHECK PROJECT

This project is Checking member's attendance via nfc

Images

login

main

hardware

  • Due to domain issues, to check the website out, press this link.

Prerequisites Hardware

  • PC for hosting website(Cloud computing service like gcp is also OK)
  • Raspberry 3b+ for using NFC module
  • NFC reader to read card
  • Small display to show register QR code

Prerequisites Software

Both

  • Python3
  • git

For hosting PC

  • Django
  • mysql
  • gcp

For raspberry 3b+

  • Adafruit_CircuitPython_PN532

How To Setup

For Hosting PC

If you hosts on Ubuntu/Debian PC

  1. Run setup script
./server_setup.sh

Setup manually

  1. Open terminal(like UNIX system) or cmd(Windows)
  2. Move to directory that you want to clone repo
  3. Type this command to clone
git clone https://github.com/Keunmo/jaram-attendance
  1. Move to repo folder
  2. Type this command to move folder for hosting PC
cd server
  1. Install python virtualenv to activate virtualenv
sudo apt install python3-venv
pip3 install virtualenv
  1. create your own virtualenv
python3 -m venv <virualenv name>
  1. activate your virtualenv
source <virtualenv name>/bin/activate
  1. Install necessary library to operate by this command
pip install --user -r requirement.txt
  1. make setting folder
rm -r .config_secret
mkdir .config_secret
  1. make secretkey randomly
python3 secretkey_gen.py
  1. Copy generated secretkey
  2. make server_info.json echo -e "{"development":{"SECRET_KEY":"","DATABASES":{"default":{"ENGINE": "django.db.backends.mysql", "NAME": "<db_name>", "USER": "<new_account>", "PASSWORD": "<new_passwd>", "HOST": "localhost", "PORT":""}}}}" > .config_secret/server_info.json echo "export DJANGO_SETTINGS_MODULE=jaram_atd.settings.development" >> ~/.bash_profile

: generated secretkey from step 12 <db_name> : database name in mysql server <new_account> : account for attendance <new_passwd> : password for account

migrate database

python3 manage.py makemigrations main python3 manage.py migrate

create supersuer

python3 manage.py createsuperuser

About

Online attendance checker with nfc cards.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 63.0%
  • HTML 25.4%
  • CSS 9.4%
  • Shell 2.2%