/punkapi-server

The server that powers the API at punkapi.com

Primary LanguageJavaScriptMIT LicenseMIT

Deprecated: This repo's functionality has moved to the punkapi monorepo

PunkAPI - Server Build Status

The PunkAPI server is a pretty simple Express app, its takes the data from punkapi-db and provides a set of filters and endpoints for the queries.

The data itself is stored in the punkapi-db repository and is available on npm as punkapi-db.

To run locally

Clone the repo $ git clone https://github.com/samjbmason/punkapi-server

Then run $ npm i and to spin up a local server run $ npm run dev, the site should now be available at http://localhost:3333

Deploying

Probably not very useful for anyone else!

  • Run $ npm run deploy
  • Run $ npm run alias to realias the domain to api.punkapi.com