You can run it locally or visit the live website
View Live Website »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Frameworks and Libraries Used
Running the Backend & Frontend on your Local Computer
- Install dependencies for Frontend
cd ./frontend
npm install
- Install dependencies for Backend
cd ../backend
npm install
- Create a .env file in root directory
- Specify a new env variable
API_KEY=<PLACE YOUR API KEY>
- Starting the Backend
cd ../backend npm run dev
- Starting the Frontend
cd ../frontend npm start
- Testing the Frontend
cd ./frontend
npm run test -- --coverage .
- Testing the Backend
cd ../backend
npm test
- Ensure that both Frontend and Backend has 100% Coverage
Development containers are pushed to DockerHub everytime a pull request to main is open
docker run --publish 3333:3333 -e API_KEY=<API_KEY> izzkhair/sid_stat_backend_dev:latest
docker run --publish 3000:3000 izzkhair/sid_stat_fronend_dev:latest
Production containers are pushed to DockerHub everytime a commit is push to Main
docker run --publish 3333:3333 -e API_KEY=<API_KEY> izzkhair/sid_stat_backend:latest
docker run --publish 3000:3000 izzkhair/sid_stat_fronend:latest
- Run test to ensure full coverage
- Build project
- Run to validate build
- Run test to ensure full coverage
- Build project
- Run to validate build
- Build Image
- Push Image to Development Containers
- Build Image
- Push Image to Production Containers
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
- GET /airports
- Params: None
- Returns:
- airports: Array
- GET /airports/sids
- Params:
- airport_icao: String
- Returns:
- sids: Array
- Params:
- GET /airports/stars
- Params:
- airport_icao: String
- Returns:
- stars: Array'
- Params:
- GET /airports/stars/waypoints
- Params:
- airport_icao: String
- Returns:
- waypoints_list_sorted: Array
- Params:
- GET /airports/sids/waypoints
- Params:
- airport_icao: String
- Returns:
- waypoints_list_sorted: Array
- Params:
- GET /
- Params:
- None
- Returns:
- WebPage
- Params:
- CI to Test, Check Coverage and Buld
- CD Build Image and Push to Docker
- Display Airport
- Display SIDS and STARS for an Airport
- Display Sorted Waypoints Count for a SID/STAR of an Airport
- CD Direct Deploy to Kubernetes Cluster
- Database for Redunduncy Purposes (In the event, API is down)
- Add Test Coverage for more paths
- Add SSL for Backend & Frontend Nodes
See the open issues for a full list of proposed features (and known issues).
Distributed under the GPL-3.0 license. See LICENSE.txt
for more information.
Izzat - [email protected]
Project Link: https://github.com/izzkhairable/SidStar-Project