Angular app used to view data on SpaceX launches, rockets, and other data. Public API data fetched with GraphQL and Apollo
Angular 9 with Angular Material and FontAwesome icons
Public SpaceX GraphQL API. Apollo for Angular used to generate the services
Used just for users who want to run the app locally without installing all the npm packages
Used to host the app on a cloud service
There are a few ways that you can run this app. Here are the options (detailed instructions below):
- View the built app on Firebase
- Run the app via Docker 🐋
- Clone the repo and run locally
View the built app on Firebase
- Clone the repo
- Make sure Docker is installed
- Note: this will take some time for all the packages to install and Angular to compile everyhting the first time, but it should be much faster after that
- From the root of the project in a command line, run:
cd ./spacex-graphql
docker build -t SOME_UNIQUE_NAME .
docker run -d -p 4201:4200 --rm SOME_UNIQUE_NAME
- Navigate to localhost:4201 and the app should be running
- To shut the app down, run:
docker stop SOME_UNIQUE_NAME
- Clone the repo
- Make sure Node and the Angular CLI are installed
- From the root of the project in a command line, run:
cd ./spacex-graphql/src
npm i
ng s -o