GithubHelp home page GithubHelp logo

yyyoy3 / jaram-attendance Goto Github PK

View Code? Open in Web Editor NEW

This project forked from keunmo/jaram-attendance

0.0 0.0 0.0 1.93 MB

License: Apache License 2.0

Python 62.96% HTML 25.40% CSS 9.44% Shell 2.19%

jaram-attendance's Introduction

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

jaram-attendance's People

Contributors

taewan-p avatar keunmo avatar jil8885 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.