Skip to content

mmagyar/declarapi-example

Repository files navigation

CatSpotter API server

An example project using declarapi.

Whenever you spot a cat, POST it here. Whenever you want to see cats, GET them from here.

How to install?

npm install

How to run?

npm run build
npm run start

Now you can access the server at http://localhost:8080/

How to develop?

npm run dev

This will start the server and recompile/reload it every time you change the code.

How to test?

./test.sh

This will start the server on port 9876, run the tests and stop the server.