This is a template for building HarperDB applications with Fastify routes. You can download this repository as a starting point for building applications with HarperDB. To get started, make sure you have installed HarperDB, which can be quickly done with npm install -g harperdb
. You can run your application from the directory where you downloaded the contents of this repository with:
harperdb run /path/to/your-app
(or if you enter that directory, you can run the current directory as harperdb run .
).
For more information about getting started with HarperDB and building applications, see our getting started guide.
This template includes the default configuration, which specifies how files are handled in your application.
The schema.graphql is the schema definition. This is the main starting point for defining your database schema, specifying which tables you want and what attributes/fields they should have.
The routes/index.js provides a template for defining Fastify routes. You can add more routes to this file as needed.