Copy the .env.example
file (recommended) to .env
, or supply your own environment variables.
# set working directory
$ cd frontend
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
This step is generally not needed unless you are planning on deploying the project to a website.
# generate static project
$ npm run generate
The backend API uses Giraffeql as the query language. It expose a schema file that roughly describe the backend models and what query operations can be performed. The TypeScript schema file can be found here. By pasting the schema.ts
file into a code editor like VSCode, you can use the Query Builder located at the top of the file to formulate Giraffeql queries.
This frontend uses the nuxt.js framework. For detailed explanation on how things work, check out Nuxt.js docs.