|
1 | | -# api-data |
2 | | -Static data from the HawAPI database |
| 1 | +# HawAPI - API-Data |
| 2 | + |
| 3 | +Static data from the [HawAPI](https://github.com/HawAPI/HawAPI) project. |
| 4 | + |
| 5 | +## Topics |
| 6 | + |
| 7 | +- [Prerequisites](#prerequisites) |
| 8 | +- [Dependencies](#dependencies) |
| 9 | +- [Contributing](./docs/CONTRIBUTING.md) |
| 10 | +- [Requesting](./docs/REQUESTTING.md) |
| 11 | + - [Requesting#Static](./docs/REQUESTTING.md#static-data) |
| 12 | + - [Requesting#Translation](./docs/REQUESTTING.md#translation-data) |
| 13 | +- [Running](#running) |
| 14 | +- [Contact](#contact) |
| 15 | +- [License](#license) |
| 16 | + |
| 17 | +## Prerequisites |
| 18 | + |
| 19 | +- The **HawAPI** project running (and all its [prerequisites](https://github.com/HawAPI/HawAPI/blob/main/docs/GETTING_STARTED.md#prerequisites)) |
| 20 | +- Node |
| 21 | + - Npm or Yarn for **run the script** |
| 22 | + |
| 23 | +## Dependencies |
| 24 | + |
| 25 | +- [dotenv](https://www.npmjs.com/package/dotenv) |
| 26 | + |
| 27 | +## Setup |
| 28 | + |
| 29 | +Step by step of how to run the application. |
| 30 | + |
| 31 | +> See all [Prerequisites](#prerequisites) |
| 32 | +
|
| 33 | +### Clone |
| 34 | + |
| 35 | +> **Note** \ |
| 36 | +> Alternatively, you could [download all files (Zip)](https://github.com/HawAPI/website/archive/refs/heads/main.zip) |
| 37 | +
|
| 38 | +- SSH |
| 39 | + |
| 40 | +``` |
| 41 | +git clone [email protected]:HawAPI/website.git |
| 42 | +``` |
| 43 | + |
| 44 | +- HTTPS |
| 45 | + |
| 46 | +``` |
| 47 | +git clone https://github.com/HawAPI/website.git |
| 48 | +``` |
| 49 | + |
| 50 | +### Running |
| 51 | + |
| 52 | +> Check [Requesting](./docs/REQUESTTING.md) |
| 53 | +
|
| 54 | +Before running the script: |
| 55 | + |
| 56 | +- |
| 57 | +- Create and define all required variables inside the `.env`. Use [.env.example](.env.example) as reference. |
| 58 | + |
| 59 | +If you are running using local HawAPI application create and define all required variables inside the `.env.dev` and use the `dev` command. Use [.env.dev.example](.env.dev.example) as reference. |
| 60 | + |
| 61 | +#### Dev/Test |
| 62 | + |
| 63 | +Using **dev** command all outputs will be stored on a `/dev/` folder. |
| 64 | + |
| 65 | +``` |
| 66 | +yarn dev |
| 67 | +``` |
| 68 | + |
| 69 | +#### Production |
| 70 | + |
| 71 | +Using **start** command all outputs will be stored on a `/database/` folder. |
| 72 | + |
| 73 | +``` |
| 74 | +yarn start |
| 75 | +``` |
| 76 | + |
| 77 | +## Contact |
| 78 | + |
| 79 | +For any questions about the project: [Contact](https://github.com/HawAPI/HawAPI#contact). |
| 80 | + |
| 81 | +## License |
| 82 | + |
| 83 | +HawAPI is licensed under the [MIT License](https://github.com/HawAPI/website/blob/main/LICENSE). |
| 84 | + |
| 85 | +> Check out all [licenses/dependencies](https://hawapi.theproject.id/docs/about/#licenses) |
0 commit comments