Build a functional prototype of a platform that gives students an array of digital academic and social tools to stay engaged with their studies, peers and broader university community during pandemic.
https://common-space.azurewebsites.net/
Note: You can create your own account by clicking on register button
OR use default credential as
UserName: simran Password: qwerty
It's a blogging + QnA website for enthusiast people from diverse background built solely by me using a completely different stack.
Built using flask
- FrontEnd: HTML, CSS, Javascripts
- Database: MySQL
-
Python 3.9.9
-
MySQL 8.0
- Create database
CREATE DATABASE common_space;
- Dump database (Optional step to get dummy data)
mysql -u<username> -p<password> common_space < ./dbdump/common_space.sql
Note: find the databases dump file in database folder
- Clone this repository to your desktop
git clone https://github.com/kathuriasimran/common-space.git
- Go to the
Common_space
directory and create a new virtual environment to create isolated Python environment. Note: I highly recommend using Virtualenv.
py -m venv env
- Activate the virtual environment
env\Scripts\activate
- Install the application requirements:
pip install -r requirements.txt
-
Configure the database and app
for detail explaination go to how it work -
Run the application and go to localhost:8000 to see the application running:
python run.py
As mention in point five of installation config look as below
config.json
{
"startup_conf":
{
"app_name" : "Common Space",
"host":"0.0.0.0",
"port":8000,
"debug":true,
"use_reloader":true,
"secret_key":"S3$&F@$%DSRER"
},
"database_conf":
{
"type":"mysql", # This can be mysql / azure_sql
"url":"localhost",
"port":3306,
"database_name":"common_space",
"username":"root",
"password":"simran"
}
}
Created by Simran Kathuria