Sign inSign up

brni05/quoteosch

By brni05

Updated 10 months ago

An API to spread the eternal wisdom of BME lecturers

Image
Web servers
0

640

brni05/quoteosch repository overview

Quoteosch API

An API to spread the eternal wisdom of BME lecturers.

How to use

Explore the API documentation here.

To fetch a random quote: https://quoteosch.sigsegv.hu/quote.

To fetch a random quote from a specific lecturer: https://quoteosch.sigsegv.hu/quote?lecturer=ppeti.

Terms of Use

  • Do not suggest offensive or unwanted content.
  • Please do not attempt to overload, spam or DDoS the API.
  • Do not scrape, copy, or redistribute API data without proper attribution.

How to contribute

Use the dedicated endpoints to suggest a:

Tip

You can use `Postman` or `curl` for this, or simply try it directly in Swagger using the `Try it out` feature.

Important

Quotes can only be suggested for lecturers who are already accepted and present in the database.

Explore all quotes: here.

Explore all lecturers: here.

How to create your own instance

  • Clone the repo: git clone https://github.com/BrNi05/Quoteosch.git.

For testing / development:

  • Install dependencies: npm install.
  • Build the project: npm run build.
  • Run the generated migration(s): npm run db:init.
  • Create your .env.
  • Start the app (in dev mode): npm run start:dev.
  • The release folder contains useful resources to host your API.

For production:

  • Copy docker-compose.yaml to a desired location.
  • Create your .env.
  • For the very first time: docker compose run --rm quoteosch-api-init.
  • Then start the API normally: docker compose up -d quoteosch-api.
  • The release folder contains a script to auto-start the container on boot.

Tip

If any changes are made to the database schema, you’ll need to start the migration container again using: `docker compose run --rm quoteosch-api-init`.

Tech Stack

  • NestJS (Node)
  • TypeScript
  • TypeORM (with SQLite)
  • Swagger (OpenAPI)
  • Docker
  • Cloudflare Tunnel

Disclaimer

Quoteosch API initially was a joke, but it evolved into a sophisticated project. It's meant for fun and not to offend anyone.

Tag summary

Content type

Image

Digest

sha256:7ecbd29bf

Size

91.1 MB

Last updated

10 months ago

docker pull brni05/quoteosch