|
1 | | -# UI-Schema Create-React Example w/ Bootstrap |
| 1 | +# UI-Schema Demo w/ Bootstrap |
2 | 2 |
|
3 | | -[](https://travis-ci.org/ui-schema/demo-bts) |
| 3 | +[](https://github.com/ui-schema/demo-bts/actions) |
4 | 4 |
|
5 | | -Example project for [@ui-schema/ui-schema](https://github.com/ui-schema/ui-schema) with bootstrap. |
| 5 | +Simple demo project for [@ui-schema/react](https://github.com/ui-schema/ui-schema) with [Bootstrap 5](https://getbootstrap.com). |
6 | 6 |
|
7 | | -Look in [src/Schema/DemoEditor.js](./src/Schema/DemoEditor.js) for the example code. |
| 7 | +Files: |
8 | 8 |
|
9 | | -[](https://ui-schema.bemit.codes/examples) |
| 9 | +- [src/components/DemoEditor.jsx](./src/components/DemoEditor.jsx) setup `binding` and demo UI-Schema form |
| 10 | +- [src/t.js](./src/t.js) dictionary setup |
10 | 11 |
|
11 | | -[](https://demo-bts--carolinholat.repl.co) |
| 12 | +Run on [CodeSandbox](https://codesandbox.io/s/github/ui-schema/demo-bts/tree/master/?autoresize=1&fontsize=12&hidenavigation=1&module=%2Fsrc%2Fcomponents%2FDemoEditor.jsx) or [StackBlitz](https://stackblitz.com/github/ui-schema/demo-bts?file=src%2Fcomponents%2FDemoEditor.jsx). |
12 | 13 |
|
13 | | -[](https://codesandbox.io/s/github/ui-schema/demo-bts/tree/master/?autoresize=1&fontsize=12&hidenavigation=1&module=%2Fsrc%2FSchema%2FDemoEditor.js) |
| 14 | +Explore more: |
14 | 15 |
|
15 | | -[](https://repl.it/@carolinholat/demo-bts) [](https://repl.it/github/ui-schema/demo-bts) |
| 16 | +- [Quick Start](https://ui-schema.bemit.codes/quick-start?ds=mui) |
| 17 | +- [Core Project](https://github.com/ui-schema/ui-schema) |
| 18 | +- [Advanced Examples in TypeScript, with MUI](https://github.com/ui-schema/demo-ts) |
16 | 19 |
|
17 | | ---- |
18 | | ---- |
19 | | ---- |
| 20 | +## Setup |
20 | 21 |
|
21 | | -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). |
| 22 | +Install dependencies: |
22 | 23 |
|
23 | | -## Available Scripts |
| 24 | +```shell |
| 25 | +npm i |
| 26 | +``` |
24 | 27 |
|
25 | | -In the project directory, you can run: |
| 28 | +Start dev server: |
26 | 29 |
|
27 | | -### `npm start` |
| 30 | +```shell |
| 31 | +npm start |
| 32 | +``` |
28 | 33 |
|
29 | | -Runs the app in the development mode.<br /> |
30 | | -Open [http://localhost:3000](http://localhost:3000) to view it in the browser. |
| 34 | +Create bundle: |
31 | 35 |
|
32 | | -The page will reload if you make edits.<br /> |
33 | | -You will also see any lint errors in the console. |
| 36 | +```shell |
| 37 | +npm run build |
| 38 | +``` |
34 | 39 |
|
35 | | -### `npm test` |
| 40 | +For tests first install a playwright browser: |
36 | 41 |
|
37 | | -Launches the test runner in the interactive watch mode.<br /> |
38 | | -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. |
| 42 | +```shell |
| 43 | +npx playwright install chromium --with-deps |
| 44 | +``` |
39 | 45 |
|
40 | | -### `npm run build` |
| 46 | +Then run tests: |
41 | 47 |
|
42 | | -Builds the app for production to the `build` folder.<br /> |
43 | | -It correctly bundles React in production mode and optimizes the build for the best performance. |
| 48 | +```shell |
| 49 | +npm test |
| 50 | +``` |
44 | 51 |
|
45 | | -The build is minified and the filenames include the hashes.<br /> |
46 | | -Your app is ready to be deployed! |
47 | 52 |
|
48 | | -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. |
49 | | - |
50 | | -### `npm run eject` |
51 | | - |
52 | | -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** |
53 | | - |
54 | | -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. |
55 | | - |
56 | | -Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. |
57 | | - |
58 | | -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. |
59 | | - |
60 | | -## Learn More |
61 | | - |
62 | | -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). |
63 | | - |
64 | | -To learn React, check out the [React documentation](https://reactjs.org/). |
65 | | - |
66 | | -### Code Splitting |
67 | | - |
68 | | -This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting |
69 | | - |
70 | | -### Analyzing the Bundle Size |
71 | | - |
72 | | -This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size |
73 | | - |
74 | | -### Making a Progressive Web App |
75 | | - |
76 | | -This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app |
77 | | - |
78 | | -### Advanced Configuration |
79 | | - |
80 | | -This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration |
81 | | - |
82 | | -### Deployment |
83 | | - |
84 | | -This section has moved here: https://facebook.github.io/create-react-app/docs/deployment |
85 | | - |
86 | | -### `npm run build` fails to minify |
87 | | - |
88 | | -This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify |
89 | | - |
90 | | -### License Icons |
91 | | - |
92 | | -The icons in the badges of the readme's are either from [simpleicons](https://simpleicons.org) or are licensed otherwise: |
93 | | - |
94 | | -- [Play Icon © Chanut is Industries, CC BY 3.0](https://www.iconfinder.com/icons/928430/go_media_music_play_playing_start_icon) |
95 | | -- [Experiment Icon © Ardiansyah Ardi, CC BY 3.0](https://www.iconfinder.com/icons/4951169/chemical_experiment_glass_lab_medical_icon) |
0 commit comments