Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Commit 01821ca

Browse files
authored
Merge pull request #23 from nteract/bump-readme
improve readme
2 parents 4fa18cf + 45ac9e2 commit 01821ca

File tree

1 file changed

+82
-6
lines changed

1 file changed

+82
-6
lines changed

README.md

Lines changed: 82 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# create-nteract-app
22

3-
[![CircleCI](https://circleci.com/gh/nteract/create-nteract-app/tree/master.svg?style=svg)](https://circleci.com/gh/nteract/create-nteract-app/tree/master)
3+
[![CircleCI](https://circleci.com/gh/nteract/create-nteract-app/tree/master.svg?style=svg)](https://circleci.com/gh/nteract/create-nteract-app/tree/master) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
4+
5+
> Create an nteractive application backed by next.js, mybinder and react with zero configuration.
46
57
## Installation
68

@@ -10,16 +12,90 @@ Install `create-nteract-app` globally
1012
npm i -g create-nteract-app
1113
```
1214

13-
## Usage
15+
## Getting Started
1416

1517
Create an nteract app and run the development server.
1618

1719
```bash
18-
create-nteract-app yourApp
19-
cd yourApp
20+
create-nteract-app myApp
21+
cd myApp
2022
yarn dev
2123
```
2224

23-
Now, navigate to [here](http://localhost:3000/) and you should see the following:
25+
![cna](https://user-images.githubusercontent.com/15242567/45272888-dd35c380-b47d-11e8-9590-b556baf04783.gif)
26+
27+
Now, navigate to [http://localhost:3000/](http://localhost:3000/) and you should see the following:
28+
29+
![image](https://user-images.githubusercontent.com/15242567/45272197-d1e09900-b479-11e8-8788-062b8659182b.png)
30+
31+
## Batteries included :battery:
32+
33+
An app bootstrapped with `create-nteract-app` comes with:
34+
35+
- [@nteract](https://github.com/nteract) components for interactive computing apps/pages
36+
- automatic webpack and babel configuration through [next.js](https://nextjs.org/)
37+
- live hot reloading
38+
- [mdx](https://mdxjs.com/)
39+
- every .js or .md file in `./pages` becomes a route that gets automatically processed and rendered!
40+
41+
This means you can write your app in `js`, `markdown` or even both! :smile:
42+
43+
Your new nteract app will have the following strucure,
44+
45+
```bash
46+
.
47+
├── __tests__
48+
│ └── index-spec.js
49+
├── components
50+
│ ├── code-state.js
51+
│ └── presentation-cell.js
52+
├── next.config.js
53+
├── package.json
54+
├── pages
55+
│ ├── _document.js
56+
│ └── index.js
57+
├── scripts
58+
│ └── test-setup.js
59+
└── yarn.lock
60+
```
61+
62+
## Commands :robot:
63+
64+
1. `yarn dev`
65+
66+
This will start the next.js server on port `3000` by default. Note, to change the port, run `yarn dev -p YOUR_PORT`
67+
68+
2. `yarn test`
69+
70+
This will kick off the [Jest](https://jestjs.io/) test suite. By default, we have included a snapshot test.
71+
72+
3. `yarn build`
73+
74+
This will produce an optimize set of code for production.
75+
76+
4. `yarn start`
77+
78+
This will run your optimized app on port 3000.
79+
80+
5. `yarn export`
81+
82+
This will export your code as a static HTML app.
83+
84+
## Contributing :tada:
85+
86+
Thanks for your interest in contributing! If you get stuck at any point, don't hesitate to reach out to the nteract team on slack or through the issue tracker.
87+
88+
To get started hacking on `create-nteract-app`, clone the repo and install dependencies.
89+
90+
```bash
91+
git clone https://github.com/nteract/create-nteract-app.git
92+
cd create-nteract-app
93+
yarn
94+
```
95+
96+
Now, make your changes and try them out with,
97+
`yarn dev your-test-app`
98+
99+
This will run `create-nteract-app` with any modifications you have made. Test your changes with `yarn test`.
24100

25-
![](Screenshot.png)
101+
See [CONTRIBUTING.md](https://github.com/nteract/create-nteract-app/blob/master/CONTRIBUTING.md) for more details.

0 commit comments

Comments
 (0)