A front-end for The Star Wars API
Except it's not quite that anymore, I ended up rolling my own API which pulls data from SWAPI.
Clone the repo and install dependencies
Note: I've used some Font Awesome Pro icons so the
yarn/npm install will fail unless you provide a valid npm auth token for the private
npm.fontawesome.com registry. Either set an FA_NPM_TOKEN environment variable to
your token, or replace ${FA_NPM_TOKEN} in .npmrc with your token.
git clone https://github.com/bkbooth/star-wars-browser.git
cd star-wars-browser
yarnStart the dev server
yarn startTo build a static version into the dist directory
yarn buildWith the main repo cloned, navigate to the server directory and install dependencies
cd server
yarnStart the server
# watches for changes and restarts server
yarn watch
# runs without watching/restarting
yarn startSeed data into the SQLite database
yarn seedBy default the seed script will not make requests to https://swapi.co, it will load from locally cached JSON files. To load fresh data from https://swapi.co (and regenerate the cached JSON files)
rm data/*.json
yarn seed