1
|
1
|
|
# FreePost
|
2
|
2
|
|
|
3
|
|
- |
This is the code powering [freepost](http://freepo.st). FreePost is a web-based discussion board that allows users to post text and links which other users may read and comment on (start a discussion). It also supports upvoting and downvoting of posts and has some nifty features to display the so-called **Hot** posts (those that are very popular and have been upvoted a lot) as well as the newest posts, aptly named **New**. Each user has a profile page which includes some information on themselves.
|
|
3
|
+ |
This is the code powering [freepost](http://freepo.st). FreePost is a web-based
|
|
4
|
+ |
discussion board that allows users to post text and links which other users may
|
|
5
|
+ |
read and comment on (start a discussion). It also supports upvoting and downvoting
|
|
6
|
+ |
of posts and has some nifty features to display the so-called **Hot** posts (those
|
|
7
|
+ |
that are very popular and have been upvoted a lot) as well as the newest posts,
|
|
8
|
+ |
aptly named **New**. Each user has a profile page which includes some information
|
|
9
|
+ |
on themselves.
|
4
|
10
|
|
|
5
|
11
|
|
## Development
|
6
|
12
|
|
|
7
|
|
- |
### Stylesheets
|
|
13
|
+ |
### Setup Python3 virtual environment
|
|
14
|
+ |
|
|
15
|
+ |
mkdir venv
|
|
16
|
+ |
virtualenv -p python3 venv
|
|
17
|
+ |
-> alternative: python3 -m venv venv
|
|
18
|
+ |
source ./venv/bin/activate
|
|
19
|
+ |
pip3 install --no-binary :all: -r requirements.txt
|
|
20
|
+ |
|
|
21
|
+ |
### Run
|
8
|
22
|
|
|
9
|
|
- |
Sources are in `css/`. They are compiled using Stylus. Run this command from the project's root:
|
|
23
|
+ |
source ./venv/bin/activate
|
|
24
|
+ |
python3 -m bottle --debug --reload --bind 127.0.0.1:8000 freepost
|
10
|
25
|
|
|
11
|
|
- |
`$ stylus --watch --compress --disable-cache --out css/ css/`
|
12
|
26
|
|
|
13
|
|
- |
### Dev server
|
|
27
|
+ |
### Stylesheets
|
|
28
|
+ |
|
|
29
|
+ |
Sources are in `css/`. They are compiled using Stylus. Run this command from
|
|
30
|
+ |
the project's root:
|
14
|
31
|
|
|
15
|
|
- |
Copy files to Apache `www`.
|
|
32
|
+ |
stylus --watch --compress --disable-cache --out css/ css/
|
16
|
33
|
|
|
17
|
34
|
|
## Contacts
|
18
|
35
|
|
|
19
|
|
- |
If you have any questions please get in contact with us at [freepost](http://freepo.st).
|
|
36
|
+ |
If you have any questions please get in contact with us at
|
|
37
|
+ |
[freepost](http://freepo.st).
|
20
|
38
|
|
|
21
|
39
|
|
## License
|
22
|
40
|
|
|
23
|
|
- |
freepost is [free software](https://www.gnu.org/philosophy/free-sw.html) licensed as GNU Affero General Public License, either version 3 or (at your option) any later version.
|
|
41
|
+ |
freepost is [free software](https://www.gnu.org/philosophy/free-sw.html) licensed
|
|
42
|
+ |
as GNU Affero General Public License, either version 3 or (at your option) any
|
|
43
|
+ |
later version.
|