Strapi V4 and ra-strapi-rest DEMO
Start the Strapi backend server
- Navigate into server =
cd server
- Run
yarn
ornpm install
- Once the dependencies are installed, run
yarn build
and thenyarn develop
- Login using the sample credentials
admin@email.com
,Admin123
- Navigate to
Settings -> API Tokens
and generatea a full access API Token. Save it somewhere, we will use it in the front end next
VITE
Start the React-admin project with- Navigate into server =
cd admin_ui
- Run
yarn
ornpm install
- Once the dependencies are installed, run
yarn build
and thenyarn dev
- Create an
.env
file in the main admin_ui directory, and add an entry for the API tokenVITE_STRAPI_API_TOKEN=[YOUR STRAPI API TOKEN HERE]
Next open localhost:5173
and you should see a react-admin page.