A RESTful API containing Star Wars data!
Thanks to @phalt for his work on the original Swapi and to @juriy for his work on the current Swapi.dev.
Currently we support the following endpoints.
GET api/films
)GET api/films/{id}
)GET api/species/
)GET api/species/{id}
)GET api/vehicles/
)GET api/vehicles/{id}
)GET api/starships/
)GET api/starships/{id}
)GET api/planets/
)GET api/planets/{id}
)GET api/people/
)GET api/people/{id}
)Currently we have a portal that presents some information about the API.
This portal is powered by Svelte and its code can be found on the /portal
subdirectory!
Currently we're hosted over at Microsoft Azure, via a App Service Plan that pulls from our DockerHub.
If you have what it takes to run Docker on your machine simply pull the image from rodolphoalves/swapi-deno:latest, map a port to the image's 8000
por and ta-da!
The following snippet might be of help: docker run -p 8000:8000 rodolphoalves/swapi-deno:latest
You'll need two things to run this project:
To run the api (as of the latest version) run deno run --unstable --allow-read --allow-net --allow-run .\app.ts
.
This will:
:8000
portal/public
folder on the /
routeFrom within the portal
folder
To build the frontend run npm run build
. This will serve the required files to the public
folder.
To run a developer version, with Hot Reload, run npm run dev
. This will constantly serve files (as you modify components) on the public
folder.
Personal note: I'm usually using two terminals to run and debug this application. On one terminal I launch deno (the API itself) and on the other one I launch Svelte's Dev Server. Then I launch Firefox Developer edition and navigate to http://localhost:8000 and test it out.