Git Product home page Git Product logo

create-nteract-app's Introduction

create-nteract-app

CircleCI code style: prettier

Create an nteractive application backed by next.js, mybinder and react with zero configuration.

Installation

Install create-nteract-app globally

npm i -g create-nteract-app

Getting Started

Create an nteract app and run the development server.

create-nteract-app myApp
cd myApp
yarn dev

cna

Now, navigate to http://localhost:3000/ and you should see the following:

image

Batteries included ๐Ÿ”‹

An app bootstrapped with create-nteract-app comes with:

  • @nteract components for interactive computing apps/pages
  • automatic webpack and babel configuration through next.js
  • live hot reloading
  • mdx
  • every .js or .md file in ./pages becomes a route that gets automatically processed and rendered!

This means you can write your app in js, markdown or even both! ๐Ÿ˜„

Your new nteract app will have the following strucure,

.
โ”œโ”€โ”€ __tests__
โ”‚   โ””โ”€โ”€ index-spec.js
โ”œโ”€โ”€ components
โ”‚   โ”œโ”€โ”€ code-state.js
โ”‚   โ””โ”€โ”€ presentation-cell.js
โ”œโ”€โ”€ next.config.js
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ pages
โ”‚   โ”œโ”€โ”€ _document.js
โ”‚   โ””โ”€โ”€ index.js
โ”œโ”€โ”€ scripts
โ”‚   โ””โ”€โ”€ test-setup.js
โ””โ”€โ”€ yarn.lock

Commands ๐Ÿค–

  1. yarn dev

    This will start the next.js server on port 3000 by default. Note, to change the port, run yarn dev -p YOUR_PORT

  2. yarn test

    This will kick off the Jest test suite. By default, we have included a snapshot test.

  3. yarn build

    This will produce an optimize set of code for production.

  4. yarn start

    This will run your optimized app on port 3000.

  5. yarn export

    This will export your code as a static HTML app.

Contributing ๐ŸŽ‰

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.

To get started hacking on create-nteract-app, clone the repo and install dependencies.

git clone https://github.com/nteract/create-nteract-app.git
cd create-nteract-app
yarn

Now, make your changes and try them out with, yarn dev your-test-app

This will run create-nteract-app with any modifications you have made. Test your changes with yarn test.

See CONTRIBUTING.md for more details.

create-nteract-app's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.