-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
267f839
commit 69c6557
Showing
1 changed file
with
27 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,35 @@ | ||
# Astar Token API | ||
# Astar-Token-API | ||
|
||
### Scripts | ||
This repository provides an API that offers various information about the Astar network. | ||
|
||
## Getting Started | ||
|
||
### API Route | ||
|
||
You can find the API documentation and explore available endpoints using the Swagger UI at [api.astar.network](https://api.astar.network/). | ||
|
||
### Running the Application | ||
|
||
To start the app locally, follow these steps: | ||
|
||
1. Install dependencies: | ||
|
||
```bash | ||
# install all the dependencies | ||
yarn | ||
``` | ||
|
||
# starts the server app in node.js environment | ||
yarn start | ||
# or you can use `yarn serve` | ||
2. Serve the app using Firebase: | ||
|
||
# starts a development server with ts-node | ||
yarn dev | ||
```bash | ||
yarn serve:firebase | ||
``` | ||
|
||
3. Now you can send requests to the local server. For instance: | ||
|
||
# transpile the project for production | ||
yarn build | ||
```bash | ||
http://localhost:5001/astar-token-api/us-central1/app/api/v1/token/price/ASTR | ||
``` | ||
|
||
## Notes | ||
|
||
- **No Hot-Reload**: This application does not support hot-reloading. After making changes to the code, you will need to restart the local server for the changes to take effect. |