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