The easiest way to get familiar with 8base is to run a demo application in your workspace.
Follow the link to login to 8base.
You can use an existing empty workspace. However, if your workspace has data we recommend creating a new one by clicking the current workspace name in the header and selecting "New Workspace".
3. Install 8base CLI (node.js is required):
npm install -g 8base
git clone https://github.com/8base/app-example.git
cd app-example/server # Login with CLI. # If you have multiple workspaces CLI will prompt you to select the empty one you created earlier. # Note the API endpoint URL displayed after login - you will need it later. 8base login # import data schema and sample data 8base import -f DEMO.json # deploy backend logic npm install 8base deploy
cd ../client npm install REACT_APP_8BASE_API_ENDPOINT=!!INSERT_API_URL_HERE!! npm start
You can now login into the demo app using your username and password.
We hope this guide helps you better understand how 8base works. Feel free to modify the data schema in your workspace, build new tables and screens to learn how to develop applications using 8base.
In order to be able to specify environment variables (e.g.
REACT_APP_8BASE_API_ENDPOINT) inline on Windows you can use cross-env:
npm install -g cross-env
This will allow you to run:
cross-env REACT_APP_8BASE_API_ENDPOINT=!!INSERT_API_URL_HERE!! npm start