This is an example of how to use papiea:
location_provider_example.ts
- is an example providerlocation_client_example.ts
- is an example client which uses this providerentity_client.ts
- is an example how easily a client can wrap the REST apis elegantlydocker-compose.yml
- shows how to configure papiea+mongo with a provider
- Clone the repo
npm install
docker-compose up -d --build
- Start docker-compose, which starts papiea, mongo and the example provider:- From your browser, go to
http://localhost:3333/api-docs
to see the exported apis. You can play around, creating entities, changing them or invoking procedures on them. docker-compose exec location-example npm run run_client
- Once you can see the provider in the browser, you can run this command.