Generating a React Application with a GraphQL Backend in Minutes

    We have added a new experimental feature in the 8base CLI (Command Line Interface), which generates a ready-made React application from your data model. This is very convenient for getting started with GraphQL and React, as well as for quickly creating an application user interface. It 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 authentication based on Auth0 , as well as the ability to download files.

    How it works


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

    2. Install the 8base CLI and using npm and run 8base login ,
    3. Run the 8base generate app $ {YOU_APP_NAME} command to generate the 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.

    A gif that visually shows the completion of these steps in the terminal:



    Total


    Here is an example of a generated React application:



    I will be glad to feedback.
    More info here .
    PS Now the 8base platform is in beta testing and is completely free.

    Also popular now: