Show More
@@ -1,66 +1,67 | |||
|
1 | 1 | # INTRO # |
|
2 | 2 | |
|
3 | 3 | This project aims to create centralized forum-like discussion platform with |
|
4 | 4 | anonymity in mind. |
|
5 | 5 | |
|
6 | 6 | Main repository: https://bitbucket.org/neko259/neboard/ |
|
7 | 7 | |
|
8 | 8 | Site: http://neboard.me/ |
|
9 | 9 | |
|
10 | 10 | # INSTALLATION # |
|
11 | 11 | |
|
12 | 12 | 1. Download application and move inside it: |
|
13 | 13 | |
|
14 | 14 | `hg clone https://bitbucket.org/neko259/neboard` |
|
15 | 15 | |
|
16 | 16 | `cd neboard` |
|
17 | 17 | |
|
18 | 18 | 2. Install all application dependencies: |
|
19 | 19 | |
|
20 | 20 | Some minimal system-wide depenencies: |
|
21 | 21 | |
|
22 | 22 | * python3 |
|
23 | 23 | * pip/pip3 |
|
24 | 24 | * jpeg |
|
25 | * zlib | |
|
25 | 26 | |
|
26 | 27 | Python dependencies: |
|
27 | 28 | |
|
28 | 29 | `pip3 install -r requirements.txt` |
|
29 | 30 | |
|
30 | 31 | You can use virtualenv to speed up the process or avoid conflicts. |
|
31 | 32 | |
|
32 | 33 | 3. Setup a database in `neboard/settings.py`. You can also change other settings like search engine. |
|
33 | 34 | |
|
34 | 35 | Depending on configured database and search engine, you need to install corresponding dependencies manually. |
|
35 | 36 | |
|
36 | 37 | Default database is *sqlite*. If you want to change the database backend, refer to the django documentation for the correct settings. Please note that sqlite accepts only one connection at a time, so you won't be able to run 2 servers or a server and a sync at the same time. |
|
37 | 38 | |
|
38 | 39 | 4. Setup SECRET_KEY to a secret value in `neboard/settings.py |
|
39 | 40 | 5. Run `./manage.py migrate` to apply all migrations |
|
40 | 41 | 6. Apply config changes to `boards/config/settings.ini`. You can see the default settings in `boards/config/default_config.ini`(do not delete or overwrite it). |
|
41 | 42 | 7. If you want to use decetral engine, run `./manage.py generate_keypair` to generate keys |
|
42 | 43 | |
|
43 | 44 | # RUNNING # |
|
44 | 45 | |
|
45 | 46 | You can run the server using django default embedded webserver by running: |
|
46 | 47 | |
|
47 | 48 | ./manage.py runserver <address>:<port> |
|
48 | 49 | |
|
49 | 50 | See django-admin command help for details. |
|
50 | 51 | |
|
51 | 52 | Also consider using wsgi or fcgi interfaces on production servers. |
|
52 | 53 | |
|
53 | 54 | When running for the first time, you need to setup at least one section tag. |
|
54 | 55 | Go to the admin page and manually create one tag with "required" property set. |
|
55 | 56 | |
|
56 | 57 | # UPGRADE # |
|
57 | 58 | |
|
58 | 59 | 1. Backup your project data. |
|
59 | 60 | 2. Copy the project contents over the old project directory |
|
60 | 61 | 3. Run migrations by `./manage.py migrate` |
|
61 | 62 | |
|
62 | 63 | You can also just clone the mercurial project and pull it to update |
|
63 | 64 | |
|
64 | 65 | # CONCLUSION # |
|
65 | 66 | |
|
66 | 67 | Enjoy our software and thank you! |
General Comments 0
You need to be logged in to leave comments.
Login now