Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datenanfragen/backend
While Datenanfragen.de is mostly run as a static site, some functionality does require a server. These endpoints are defined here.
https://github.com/datenanfragen/backend
hapijs privacy rest-api
Last synced: 11 days ago
JSON representation
While Datenanfragen.de is mostly run as a static site, some functionality does require a server. These endpoints are defined here.
- Host: GitHub
- URL: https://github.com/datenanfragen/backend
- Owner: datenanfragen
- License: mit
- Created: 2020-08-08T22:21:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T15:07:31.000Z (26 days ago)
- Last Synced: 2024-10-23T19:07:44.314Z (26 days ago)
- Topics: hapijs, privacy, rest-api
- Language: JavaScript
- Homepage:
- Size: 1.1 MB
- Stars: 4
- Watchers: 4
- Forks: 6
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
- Authors: AUTHORS
Awesome Lists containing this project
README
# The backend for Datenanfragen.de
> While Datenanfragen.de is mostly run as a static site, some functionality does require a server. These endpoints are defined here.
TODO: This is still very much a work in progress. Neither the code nor this README is done yet.
## Setup
* Clone the repo.
* Fetch the required dependencies: `yarn`
* Copy `config-sample.json` to `config.json` and change the settings accordingly.
* Initialize the database: `yarn knex migrate:latest`### Development
You can start the development server using `yarn dev`. It will reload automatically when you change something. Testing the payment providers can be done by using their respective test APIs:
* **mollie**: Use the provided test API key and the endpoint as configured in the `config-sample.json`
* **CoinGate**: Create an account at [sandbox.coingate.com](https://sandbox.coingate.com) (you'll need a "business" or "merchant" account) and use the API endpoint for the sandbox (`https://api-sandbox.coingate.com/v2/orders`) in combination with your sandbox API key.