Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dm94/stiletto-node-api
API for Stiletto https://github.com/dm94/stiletto-web
https://github.com/dm94/stiletto-node-api
axios discord-api fastify mongodb mysql nodejs typescript vitest
Last synced: 2 days ago
JSON representation
API for Stiletto https://github.com/dm94/stiletto-web
- Host: GitHub
- URL: https://github.com/dm94/stiletto-node-api
- Owner: dm94
- License: mit
- Created: 2023-02-25T09:45:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-12T16:53:50.000Z (26 days ago)
- Last Synced: 2024-12-12T17:44:17.594Z (26 days ago)
- Topics: axios, discord-api, fastify, mongodb, mysql, nodejs, typescript, vitest
- Language: TypeScript
- Homepage:
- Size: 195 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Stiletto API
This API is designed with fastify.
[Documentation](https://bump.sh/doc/stiletto-api)
### Stiletto Project
Frotend from this project: https://github.com/dm94/stiletto-web
Web with different utilities for the game Last Oasis, but is not affiliated with [Donkey Crew](https://www.donkey.team/)
It is created with JS (react), HTML, CSS (bootstrap) and API fastify
You can see this website in operation here: [https://stiletto.deeme.dev/](https://stiletto.deeme.dev/)
## Installation
With npm
```bash
npm install
npm run dev
```With pnpm
```bash
pnpm install
pnpm run dev
```## Swagger UI
Only enabled for the development environmenthttp://localhost:8080/doc
#### Images
In the same place as the API I also host the images that the web loads.
These images are placed in different folders as follows:- "maps" : It contains the maps generated with leaflet each map has its own folder and in the main folder it contains a image of each map
- "markers" : Custom markers for each resource are placed with the resource name in .png format. If the resource has spaces it is replaced by \_ and each word is written with the first letter in capital letters. Example: Nibiran Mineral => Nibiran_Mineral.png
- "items" : Images for each item are placed with the name of the item in .png format. If the resource has spaces it is replaced by \_ and each word is written with the first letter in capital letters. Example: Nibiran Mineral => Nibiran_Mineral.png#### Generate maps
Library: [gdal2tiles-leaflet](https://github.com/commenthol/gdal2tiles-leaflet)
Command to generate it:
`python gdal2tiles.py -l -p raster -z 0-5 -w none `