Skip to content

Simple Feedback Web to Connect Students with Lecturers Based on Python FLASK

License

Notifications You must be signed in to change notification settings

YuukioFuyu/campUS

Repository files navigation

Python Flask TailwindCSS DaisyUI

campUS

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. 🤗💌✨

Our Lecture 💪

Irwan Kautsar
Irwan Alnarus Kautsar
Lecture

Our Team 🤝

ゆうきお ふゆ
ゆうきお ふゆ
Back-End & Database
Alvito Dian Pratama Putra
Alvito Dian Pratama Putra
Back-End & Bug Hunter
Rayhanantha Akbar Putra Prasetyo
Rayhanantha Akbar
Front-End & UI/UX

Screenshots 💻

image image


Dependency

  • Python3
  • PostgreSQL

Pre-Installation

  1. Clone this repository
git clone https://github.com/YuukioFuyu/campUS.git
  1. Install python3 & venv
sudo dnf install python3 python3-venv
  1. Install postgreSQL database
sudo dnf install postgresql14-server
  1. Setup postgreSQL
sudo /usr/pgsql-14/bin/postgresql-14-setup initdb
  1. Enable postgreSQL services
sudo systemctl enable --now postgresql-14
  1. Create database
psql -U postgres
create database messages;
\q
  1. Import database
psql -U postgres messages < messages.psql

Installation

  1. Create venv directory
python3 -m venv [path to venv]
  1. Enable venv
source [path to venv]/bin/activate
  1. Install requirements
pip install -r requirements.txt
  1. Edit app.py

Customise with your settings

  • app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://[DATABASE USER]:[PASSWORD]@[IP SERVER]/[DATABASE NAME]'
  • app.secret_key = 'YOUR SECRET KEY'
  1. Save and exit app.py

  2. Run the program

python3 ./app.py
  1. Access via browser on localhost / http://127.0.0.1

Default Login:

Administrator

Username Password
admin admin

Student 1

Username Password
mhs1 mhs1

Student 2

Username Password
mhs2 mhs2