Hey there, lovely peeps! So, imagine this super cool app, like, totally made for all you awesome students out there! 😄 It's, like, a special secret place where you can share your thoughts, questions, or anything with your super cool professors or, like, the big boss, the rector! And guess what? All your messages get this super-duper secret code, so, like, only the magical beings with the right key can read 'em! 🔐✨
And, like, your precious messages? They're all snuggled up, safe and sound, in this super fancy database called PostgreSQL. Ain't that cool? 📚🔒
Oh, and here comes the magical part! Professors and the rector, they got the VIP pass to see all the messages, like, from everyone. But you, sweet student, you only see your own messages, just yours! 😇💌
So, like, why's this here? Well, it's, like, this amazing project for the super smart Computer Security class! It's all about making sure your stuff stays safe and protected while you talk to your profs and the big boss. 🌟💻
In a nutshell, this app is like a cozy corner where students and, like, the super cool academic folks can chat all safe and sound. With messages all coded up and a special safe home for 'em, this app is like a big warm hug for keeping secrets safe. 🤗💌✨
ゆうきお ふゆ Back-End & Database |
Alvito Dian Pratama Putra Back-End & Bug Hunter |
Rayhanantha Akbar Front-End & UI/UX |
- Python3
- PostgreSQL
- Clone this repository
git clone https://github.com/YuukioFuyu/campUS.git
- Install python3 & venv
sudo dnf install python3 python3-venv
- Install postgreSQL database
sudo dnf install postgresql14-server
- Setup postgreSQL
sudo /usr/pgsql-14/bin/postgresql-14-setup initdb
- Enable postgreSQL services
sudo systemctl enable --now postgresql-14
- Create database
psql -U postgres
create database messages;
\q
- Import database
psql -U postgres messages < messages.psql
- Create venv directory
python3 -m venv [path to venv]
- Enable venv
source [path to venv]/bin/activate
- Install requirements
pip install -r requirements.txt
- Edit app.py
- app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://[DATABASE USER]:[PASSWORD]@[IP SERVER]/[DATABASE NAME]'
- app.secret_key = 'YOUR SECRET KEY'
-
Save and exit app.py
-
Run the program
python3 ./app.py
- Access via browser on localhost / http://127.0.0.1
Username | Password |
---|---|
admin | admin |
Username | Password |
---|---|
mhs1 | mhs1 |
Username | Password |
---|---|
mhs2 | mhs2 |