Skip to content

Funtimes909/ServerSeekerV2-PyAPI

Repository files navigation

Forgejo Docker FastAPI PostgreSQL Python Forgejo Last Commit

ServerSeekerV2 Python API

ServerSeekerV2 API written in Python using FastAPI

Requirements

A PostgreSQL database in the ServerSeekerV2 schema that allows connections from the API.
Python 3.12+

Installation

Clone the ServerSeekerV2 API Git repository

git clone https://github.com/Funtimes909/ServerSeekerV2-PyAPI

Installing dependencies

The ServerSeekerV2 API depends on PostgreSQL and several Python libraries. These need to be installed to run the ServerSeekerV2 API.

Install Python requirements with pip

python -m venv env
./env/bin/pip install -r ./requirements

Install PostgreSQL

Debian (and derivatives):

sudo apt install postgresql

Arch (and derivatives):

sudo pacman -S postgresql

Install Git:

Ubuntu/Debian:

sudo apt-get install git

Arch:

sudo pacman -S git

Running

Manual

Dev Server

The Dev Server allows for local, and only local access of the API, running on port 8000.

fastapi dev

Production

The production server should not be used alone.
When deploying, a reverse proxy with a webserver like Apache, Nginx or Caddy (recommended) should be used.
You should also deny connections to port 8000 from outside the network.
The server runs on port 8000.

fastapi run

Docker

Create a file named serverseekerv2.env and fill it according to the .env.example file on the GitHub Repository. When deploying, a reverse proxy with a webserver like Apache, Nginx or Caddy (recommended) should be used.
You should also deny connections to port 8000 from outside the network.
The server runs on port 8000.

docker run --mount type=bind,src=./serverseekerv2.env,dst=/usr/src/app/.env -p 8000:8000 -d nucceteere/serverseekerv2-pyapi

Special Thanks

About

Repository for the ServerSeekerV2 PyAPI, Maintained by @EngurRuzgar and @Funtimes909 [MIRROR ONLY]

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •