Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vincent-the-gamer/api
Self-hosted API.
https://github.com/vincent-the-gamer/api
Last synced: 5 days ago
JSON representation
Self-hosted API.
- Host: GitHub
- URL: https://github.com/vincent-the-gamer/api
- Owner: Vincent-the-gamer
- License: mit
- Created: 2024-10-19T08:46:11.000Z (27 days ago)
- Default Branch: main
- Last Pushed: 2024-10-23T14:26:37.000Z (23 days ago)
- Last Synced: 2024-10-24T12:28:56.104Z (22 days ago)
- Language: TypeScript
- Size: 31.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# API
Self-hosted API.
## Dev environment variables
With prefix: `NITRO_`
```
NITRO_BASE_URL=xxx
```## Production
Config your runtime environment variables in `nitro.config.ts`, this will overwrite same variable
named `NITRO_xxx`For example:
```ts
export default defineNitroConfig({
srcDir: 'server',
logLevel: 2,
runtimeConfig: {
baseUrl: 'your_api_deploy_location',
port: 3001
}
})
````baseUrl` replaces `NITRO_BASE_URL` in production build(runtime).
## Auto-import Directories
- server/api/
- server/routes/
- server/utils/
- server/plugins/
- server/middleware/# License
[MIT License 2024-present @ Vincent-the-gamer](./LICENSE)