A better social link-sharing website.
- change the name
- model relationships defined:
- 1 User -> 1 Comment
- many comments -> 1 Post
- many posts -> 1 Subreddit
- many subreddits -> 1 Subreddits listing
- add Constraints to models (?)
- add table indexes (hot-sorted subreddit posts, homepage, user accounts)
- user accounts w/CSRF
- Individual Pages
-
homepage
-
/subreddits/
/subreddits/mine
listings pages -
subreddit
landing page- Sorting parameter (
/r/.../top/?t=year
,/popular
,new
,rising
,controversial
) - use Pagination
- Sorting parameter (
-
/r/.../submit
(per-subreddit) -
/login
,/logout
,/password
-
prefs
,settings
-
- RSS feed import/sync (per-subreddit?)
- API (https://reddit.com/dev/api/)
From the root directory:
docker run \
-dti \
-v "./data:/var/data" \
-v "./app:/var/www" \
-e LAPIS_ENV="development" \
-p 8080:80 \
--name pagesix \
--platform=linux/amd64 \
karai17/lapis-centos:latest
Then, visit: http://localhost:8080/
- Reddit Archive - for CSS and HTML inspiration
- Built using Lapis and OpenResty in Lua v5.1