Skip to content

Commit 6daddba

Browse files
MrLeebosimeg
authored andcommitted
Create proper demo application
The demo app is just a basic create-react-app app with some customizable examples showing off how react-datetime can be used. Deploy the demo with `npm run deploy` Access the demo (after deploying) from https://YouCanBookMe.github.io/react-datetime
1 parent 088e511 commit 6daddba

File tree

14 files changed

+20517
-0
lines changed

14 files changed

+20517
-0
lines changed

demo/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
12+
# misc
13+
.DS_Store
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*

demo/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# react-datetime demo app
2+
3+
[Demo](https://YouCanBookMe.github.io/react-datetime)
4+
5+
#### How to Start
6+
7+
```bash
8+
npm start
9+
```
10+
11+
#### How to Deploy
12+
13+
Run "deploy" from the demo directory:
14+
15+
```bash
16+
cd ~/react-datetime/demo
17+
npm run deploy
18+
```
19+
20+
#### How to Run the demo with your local changes
21+
22+
If you are working on some change and you want to use the demo to test them out, you have to link your local "react-datetime" directory to the demo:
23+
24+
```bash
25+
cd ~/react-datetime
26+
npm link
27+
28+
cd demo
29+
npm link react-datetime
30+
31+
npm start
32+
```

0 commit comments

Comments
 (0)