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.
### Start the Development Server
```bash
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.
When changing the schema file husky will automatically generate the html documentation. Therefore, you need to have the spectaql
package installed globally.
npm install -g spectaql