📜 ⬆️ ⬇️

Generate React application with GraphQL backend in minutes

We added a new experimental feature in the 8base CLI (Command Line Interface), which generates a ready-made React application from your data model. It is very convenient to start working with GraphQL and React, as well as to quickly create the user interface of the application. Looks like scaffolding in Ruby-on-Rails.

The created application is based on the Create React App , uses the Apollo Client for GraphQL queries, includes Auth0 based authentication , and the ability to download files.

How it works


You need to do a few simple steps:
  1. Define your data model in 8base ,

  2. Install 8base CLI and using npm and run 8base login ,
  3. Run the command 8base generate app $ {YOU_APP_NAME} to generate an application template,
  4. Run 8base generate scaffold $ {TABLE_NAME} to generate the CRUD UI of the selected data table (you can repeat this step for each table you want to add),
  5. Finally, run yarn install && yarn start to start the application.

Gifka, which visually shows the execution of these steps in the terminal:
')


Total


Here is an example of the generated React application:



I would appreciate feedback.
More information here .
PS Now the 8base platform is in beta testing and is completely free.

Source: https://habr.com/ru/post/454604/


All Articles