This is a template for building Harper applications. You can download this repository as a starting point for building applications with Harper.
To get started, make sure you have installed Harper, 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 set your current working directory to that directory, you can run it as harperdb run .
.
Once running, test your application works by querying the /Greeting
endpoint:
curl http://localhost:9926/Greeting
Should result in:
{"greeting":"Hello, world!"}
Or navigate to http://localhost:9926 in a browser and view the functional web application.
For more information about getting started with HarperDB and building applications, see our getting started guide.
For more information on Harper Components, see the Components documentation.
This template includes a default configuration, which specifies how files are handled in your application.
The schema.graphql is the table 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 resources.js provides a template for defining JavaScript resource classes, for customized application logic in your endpoints.