Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Backend for simple forum made with FastAPI and Piccolo ORM ecosystem.

License

NotificationsYou must be signed in to change notification settings

sinisaos/headless-forum-fastapi

Repository files navigation

Backend for simple forum made withFastAPI andPiccolo ORM ecosystem.


Instalation

Clone repository in fresh virtualenv.

git clone https://github.com/sinisaos/headless-forum-fastapi.git

Install requirements

cd headless-forum-fastapipip install -r requirements/requirements.txt

Create database

sudo -i -u yourpostgresusername psqlCREATE DATABASE forum;\q;

Setup


Create.env file in root of the project.

DB_NAME=your db nameDB_USER=your db usernameDB_PASSWORD=your db passwordDB_HOST=your db hostDB_PORT=your db portSECRET_KEY=your secret keyALGORITHM="HS256"ACCESS_TOKEN_EXPIRE_MINUTES=30

Migrations

./scripts/migrations.sh

Create admin user

./scripts/user.sh

Testing

Install test requirements.

pip install -r requirements/test-requirements.txt

Run tests.

./scripts/test.sh

Linting

./scripts/lint.sh

Getting started

./scripts/start.sh

After site is running log in as admin user onlocalhost:8000/admin/ and add categories, topics etc.

For non admin user go to API docslocalhost:8000/docs/ where you can register.

After that you can login with Authorize button to access protected routes.

About

Backend for simple forum made with FastAPI and Piccolo ORM ecosystem.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp