Skip to content

cuba-labs/sample-car-rent-graphql

Repository files navigation

CUBA Sample Project - Car Rent

Sample CUBA project with non trivial model, which used as base for tests in @cuba-platform/front-generator.

This fork of Car Rent App provides examples of using GraphQL with CUBA App.

GraphQL Endpoints

Main GraphQL endpoint
http://localhost:8080/app-portal/graphql

GraphiQL
http://localhost:8080/app-portal/graphiql

Generated Schema
http://localhost:8080/app-portal/graphql/schema

Data

Users

admin/admin
mechanic/1 manager/2

Development

Create Init Script With Data Already Added in App

  • Export data from table <TABLE_NAME>
sudo -u postgres pg_dump --table=<TABLE_NAME> --data-only --column-inserts scr
  • Paste generated script to 30.create-db.sql
  • Script will be executed when database will be created next time

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published