Name: attendance-portal
Owner: GeekHaven
Description: Attendance Portal which implements a unique way to mark attendance using tokens
Forked from: GitHubCommunity-IIITAllahabad/attendance-portal
Created: 2017-12-10 08:07:38.0
Updated: 2017-12-12 12:50:50.0
Pushed: 2017-09-25 10:04:56.0
Homepage: https://attendance-portal.herokuapp.com
Size: 6765
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Clone the repo
clone https://github.com/Symphoria/attendance-portal.git
Go into the project directory
ttendance-portal
Run setup.py
python file. It will install all the dependencies for the project in a virtual environment by the name py-env
and also install the postgresql database.
on setup.py
After cloning the project and installing all the dependencies, open a new terminal window and log into postgresql server
-i -u postgres
Go into the postgresql shell by typing
Now create a database by the name attendance_portal
tedb attendance_portal;
You can check that you database has been created by typing \l
.
The database attendance_portal
will be in the list of local databases.
You can follow this link if you want to create a new user for this project to log into the postgresql server - Install and use postgresql - DigitalOcean
After setting up the database, you would need to put your password for the postgresql server which you put in during installation of postgresql in a bash file. Open a new terminal window and type
.my_profile
and then write
rt postgres_password="Insert your postgres password here"
and execute this file with
ce .my_profile
You would need to run the above command every time you restart your system to access the database
After doing all the abovementioned tiresome things, there is just one more thing to do. Migrate the database schema and create all the tables. For that, go into your project directory with virtaulenv enabled and type
on manage.py makemigrations
on manage.py migrate
You can start the server by writing the command
on manage.py runserver