Neuland API uses GraphQL to provide a flexible and powerful API for neuland.app and Neuland Next.
The API documentation is available here.
https://api.neuland.app/graphql
bun i
Set the necessary environment variables in a .env.local
file.
You can use the .env.local.example
file as a template.
bun start
Tip
Use bun dev
to start the development server with hot reloading.
Use the interactive GraphQL Playground to explore the API and its documentation.
http://localhost:4000/
index.ts
- The entry point for the API.src/
- Contains the source code for the GraphQL API.src/schema.gql
- Contains the GraphQL schema.src/data/
- Contains the static data.src/resolvers/
- Contains the resolvers.src/types/
- Contains the types for TypeScript.src/scrapers/
- Contains the scrapers for the data used by the resolvers.src/utils/
- Contains utility functions.
We use husky to lint and test the code before it is committed, that's why we recommend using the ESLint and Prettier extensions in VSCode.
The static documentation is generated using Magicdoc at build time.
So, you don't need to worry about it as long as you follow the conventions and update the magicdoc.mjs
file when adding new custom scalars to the schema.
To start the documentation server locally, run:
bun docs:dev