the fastest way to build a React app with Basic from scratch
create-lofi-app
Create a new project
y
for installing the vite package.
Then give your project a name.
And finally choose the Basic + Tailwind variant.install npm packages
cd project-name
into your project, run npm i
, and start your server with npm run dev
:http://localhost:5173
and see the app running as below:
change the homepage
update the schema
create and connect to a Basic project
basic init
command will automatically update the basic.config.ts
file with the project_id). You will need to basic push
to update the version number in the basic.config.ts
file.…or use the Basic dashboard to create and connect to a new Basic project (make sure to update the basic.config.ts
file with the project_id). You will need to manually update the version number in the basic.config.ts
file to match the version number in your Basic admin project dashboard.Add a login button to App.tsx
src/App.tsx
and import signin
, isSignedIn
, and user
.Add a logout button