An open API service indexing awesome lists of open source software.

https://github.com/pine/gotandajs-api-sample

:ab: Gotanda.js sample API server
https://github.com/pine/gotandajs-api-sample

Last synced: 12 months ago
JSON representation

:ab: Gotanda.js sample API server

Awesome Lists containing this project

README

          

gotandajs-api-sample
--------------------

Gotanda.js sample API server.

## Requirements

- Node `$(cat .node-version)`
- Yarn
- MySQL 5.7

## Getting Started

```
$ yarn
$ yarn setup
$ yarn seed
$ yarn start
```

And, please open on your browser:

- http://localhost:8080/healthcheck
- http://localhost:8080/events

## Daemonize
Gotanda.js sample API server supports graceful restart with PM2.

```
$ npm i pm2 -g
$ pm2 reload config/pm2.config.js --env production -x
$ pm2 logs
```

## License

MIT © Pine Mizune