Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ardeshirv/fake-airline-info-api-service
Final Project of Software Engineering Bootcamp with Go Programming Language by The Go Dragons Team
https://github.com/ardeshirv/fake-airline-info-api-service
go golang json json-api mock mock-api singleton
Last synced: about 1 month ago
JSON representation
Final Project of Software Engineering Bootcamp with Go Programming Language by The Go Dragons Team
- Host: GitHub
- URL: https://github.com/ardeshirv/fake-airline-info-api-service
- Owner: ArdeshirV
- License: mit
- Created: 2023-06-18T10:32:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-04T15:47:26.000Z (over 1 year ago)
- Last Synced: 2023-08-04T16:45:13.735Z (over 1 year ago)
- Topics: go, golang, json, json-api, mock, mock-api, singleton
- Language: Go
- Homepage:
- Size: 4.58 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fake-airline-info-service
Provides a mock-API for airline information service to test the [final-project](https://github.com/the-go-dragons/final-project)## Installation
Clone the repository to your local machine using the git clone command.
```
git clone https://github.com/ArdeshirV/fake-airline-info-api-service
```
Make sure you have Go installed on your machine. If not, follow the official Go installation guide [here](https://golang.org/doc/install).### Navigate to the project directory.
```cd [project_directory]```#### Run the following command to build the project.
```make build```#### To run the project locally, use the following command.
```make run```![fake-airline-info-service](https://github.com/the-go-dragons/fake-airline-info-api-service/blob/main/img/app.png)
#### To run the project tests, use the following command.
```make test```#### To format the project code, use the following command.
```make format```#### To clean the project build files, use the following command.
```make clean```## Deployment
To deploy the project using Liara, make sure you have Liara CLI installed. If not, follow the official Liara CLI installation guide [here](https://docs.liara.ir/cli).#### Set the necessary environment variables for deployment.
```
export deploy_liara_token=[your_api_token]
export APP_NAME_ON_LIARA=[your_app_name_on_liara]
```#### Change the deployment region if necessary.
```export LIARA_REGION=[selected_region]```#### Run the following command to deploy the project to Liara.
```make deploy```Copyright© 2023 The Go Dragons Team, Licensed under MIT