mirror of
https://codeberg.org/heathercat123/s2forumsdev.git
synced 2026-02-01 16:04:48 -05:00
Mirror of an easy way to set up S2Forums made for APIClone development
- JavaScript 84.7%
- Python 7.8%
- HTML 7.4%
| apiclone | ||
| base_comments | ||
| lib | ||
| notifications | ||
| static | ||
| templates | ||
| .gitignore | ||
| .python-version | ||
| forumindex.py | ||
| manage.py | ||
| README.md | ||
| requirements.txt | ||
S2Forums Dev
An easy way to set up S2Forums made for APIClone development.
Requirements
- Python 2.7. On Linux you can use pyenv to install it.
- Pip. Same as above.
- RabbitMQ. I couldn't get Celery to work without it. The rest will get installed automatically in step 2.
Usage
- Clone this and the S2Forums repositories:
git clone https://codeberg.org/heathercat123/s2forumsdev.git
cd s2forumsdev
git clone https://github.com/scratchfoundation/s2forums.git
ln -s s2forums/djangobb_forum/ djangobb_forum
- Install the required Python packages:
pip install -r requirements.txt
- Set up the database:
python manage.py syncdb
If it asks you to create a user, do it!!
- Import the forum index:
python manage.py shell
import forumindex
exit()
-
Start RabbitMQ: On SystemD-based Linux distros:
sudo systemctl start rabbitmq -
Start the celery
demondaemon:
celery -A apiclone.celery_app worker -l info
Then, open a new console tab or window.
- In that new console, run the dev server:
python manage.py runserver
- Open the forums (located at http://localhost:8000/discuss/) in a web browser.
If you scroll down while logged in as an admin, you will see a PADDING category. Don't worry, it's only there to add, well, padding.