https://github.com/marmelab/ra-tailwind-demo
An example showing how to use react-admin in headless mode with tailwind
https://github.com/marmelab/ra-tailwind-demo
Last synced: about 2 months ago
JSON representation
An example showing how to use react-admin in headless mode with tailwind
- Host: GitHub
- URL: https://github.com/marmelab/ra-tailwind-demo
- Owner: marmelab
- Created: 2023-09-22T16:06:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-18T15:35:22.000Z (over 1 year ago)
- Last Synced: 2024-04-13T02:08:38.093Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://ra-tailwind-demo.vercel.app
- Size: 171 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ra-tailwind
## Installation
Install the application dependencies by running:
```sh
npm install
```## Development
Start the application in development mode by running:
```sh
npm run dev
```## Production
Build the application in production mode by running:
```sh
npm run build
```## DataProvider
The included data provider use [FakeREST](https://github.com/marmelab/fakerest) to simulate a backend.
You'll find a `data.json` file in the `src` directory that includes some fake data for testing purposes.It includes two resources, posts and comments.
Posts have the following properties: `id`, `title` and `content`.
Comments have the following properties: `id`, `post_id` and `content`.## Authentication
The included auth provider should only be used for development and test purposes.
You'll find a `users.json` file in the `src` directory that includes the users you can use.You can sign in to the application with the following usernames and password:
- janedoe / password
- johndoe / password