Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luizfelipedasilva678/quiz-api
API for quiz creation ðŸ§
https://github.com/luizfelipedasilva678/quiz-api
deno honojs postgres
Last synced: about 1 month ago
JSON representation
API for quiz creation ðŸ§
- Host: GitHub
- URL: https://github.com/luizfelipedasilva678/quiz-api
- Owner: luizfelipedasilva678
- License: mit
- Created: 2024-03-15T20:39:08.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-05-29T01:28:46.000Z (7 months ago)
- Last Synced: 2024-05-29T15:23:33.466Z (7 months ago)
- Topics: deno, honojs, postgres
- Language: TypeScript
- Homepage:
- Size: 785 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quiz api
This is an api to create quizzes ðŸ§
## How to run
Firstly you will need a Postgres database you can use the docker-compose.yaml
(to use this file you will need to configure the secrets you can find more
information [here](https://docs.docker.com/compose/use-secrets/)) in this
repository to do this, after that you just need to run the script.sql (available
in /docs/script.sql) and `deno task dev`.## Environment variables
| Name | Meaning |
| --------------------- | :---------------------------------------------------------------------------------------------------------------------------------------: |
| BASE_URL | The base url of the api |
| CLOUDINARY_CLOUD_NAME | Cloud name on Cloudinary |
| CLOUDINARY_API_KEY | Cloudinary api key |
| CLOUDINARY_API_SECRET | Cloudinary api secret |
| DB_USER | Database user |
| DB_PASSWORD | Database password |
| DB_HOST | Database host |
| DB_PORT | Database port |
| DB_SSL_CERT | Database ssl cert (The value need to be in base64) with you dont need a ssl cert you will need to edit the src/config/db/database.ts file |## Documentation
You can find the documention in the follow endpoints: `/v1/doc` (OpenApi) or
`/v1/doc/ui` (SwaggerUI)## To Do
- [] Improve testing.