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 done quickly:
npm install -g harperdbThen you can start your app:
npm run devTest your application works by querying the /Greeting endpoint:
curl http://localhost:9926/GreetingYou should see the following:
{"greeting":"Hello, world!"}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.
Take a look at the 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.
When you are ready, head to https://fabric.harper.fast/, log in to your account, and create a cluster.
Set up your .env file with your secure cluster credentials. Don't commit this file to source control!
npm run loginThen you can deploy your app to your cluster:
npm run deploy