Skip to content

A website for insight sharing, so that users can gain knowledge by hearing others insights, and retain/deepen knowledge by sharing their own! Essentially a virtual companion study.

Notifications You must be signed in to change notification settings

brighamandersen/no-end-insight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No End Insight

An online social media platform for sharing uplifting insights! Only the front-end (HTML and Bootstrap CSS) was completed for school, and I've since hooked it up with a back-end with live data as a fun side project!

Installation

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
touch .env

Make sure to fill .env with correct contents (see .env.example).

Virtual environment commands

Create virtual environment

python -m venv .venv

Activate virtual environment

source .venv/bin/activate

Deactivate virtual environment

deactivate

Update requirements.txt with currently installed dependencies

pip freeze > requirements.txt

Install dependencies listed in requirements.txt

pip install -r requirements.txt

Usage locally

python app.py

Usage/deployment to production

pm2 start pm2.json

Behind the scenes this runs python3 -m gunicorn -w 1 --bind 0.0.0.0:5003 wsgi:app. This runs the app with gunicorn on the right port, then pm2 manages it, handling automatic restarts. -w 1 means just use 1 worker process (doing this because I have only 1 CPU on the virtual server). If you try to run gunicorn without pm2 and want it in the background, you'll need to add the --daemon flag.

TODO

  • Put auth behind middleware for better reuse and separation of concerns.

About

A website for insight sharing, so that users can gain knowledge by hearing others insights, and retain/deepen knowledge by sharing their own! Essentially a virtual companion study.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published