This project was generated with Angular CLI version 16.2.2.
A simple web app that visualizes data from the NASA API and SpaceflightAPI.
Download Node.JS
Install Angular CLI: npm install -g @angular/cli
Clone the repo: git clone https://github.com/Needlide/Astronews.UI.git
Navigate to the project directory: cd repo
Install dependencies: npm install
Obtain the API key at NASA Open APIs
Create a new file src/environments/environment.ts and copy code from environment.prod.ts to newly created environment.ts
Put your API key from NASA Open APIs in the secrets/api_key section like this: api_key: YOUR_API_KEY_GOES_HERE
Save the file
For advanced usage of the search bar append the prefix before the search term
Prefix must be split from the search term by semicolon :
Example: t: NASA - will search for titles which contain keyword NASA
Here is the list of prefixes used on different pages (News, Curiosity, NASA, APOD):
- News
- No prefix - search by title and summary
t- search by titlens- search by news sites- search by summaryp- search by published before and published after dates (dates inyyyy-mm-ddformat split with comma,)pb- search by published before date (yyyy-mm-ddformat)pa- search by published after date (yyyy-mm-ddformat)
This project is licensed under the GNU GPLv3.