By Jonathan Kemp
you could open your browser and start coding full blown web applications?
CodeSandbox is an online editor that helps you create web applications, from initial prototype to deployment.
Search by package
One click install for new dependencies
Share code with a single link
Embedding
Hot Module Reloading
Linting with ESLint
TypeScript
UI for configuration files
Create Sandbox - https://codesandbox.io/s/
Import from GitHub
Upload from CLI
npm i -g codesandbox
cd path-of-your-project
codesandbox ./
The development server will serve all files statically from the public folder, depending on the template.
The preview window has integrated DevTools, like a console, test view and a problem viewer.
You can open your sandbox preview with a separate URL, while still keeping Hot Module Reloading.
Typings are automatically downloaded for every dependency, so you always have autocompletions.
TypeScript autocompletions and diagnostics for TS sandboxes.
Code automatically gets prettified on save according to your own Prettier preferences.
All code is linted automatically using latest version of ESLint, with full ES6 support.
You can easily expand abbreviations with Emmet.io in all JS, HTML and CSS files.
Create React apps with no build configuration (create-react-app)
You don’t need to install or configure tools like Webpack or Babel
They are preconfigured and hidden so that you can focus on the code
React, JSX, ES6, and Flow syntax support
Language extras beyond ES6 like the object spread operator
Autoprefixed CSS
A fast interactive unit test runner
A build script to bundle JS, CSS, and images for production
An offline-first service worker and a web app manifest
Hassle-free updates for the above tools with a single dependency
CLI for rapid Vue.js development
Sensible defaults so you can focus on writing your app instead of spending days wrangling with configurations
Flexibility to tweak the config of each tool without the need for ejecting
Webpack
Babel
Vuex/Vue Router
TypeScript
Progressive Web App support
ESLint
PostCSS, CSS Modules and pre-processors including Sass, Less and Stylus
Unit Testing
E2E Testing
vue-loader is a loader for webpack that allows you to author Vue components in a format called Single-File Components (SFCs)
App.vue
webpack and vue-loader gives you a modern, flexible and extremely powerful front-end workflow for authoring Vue.js applications
A command line interface for Angular
Follows the official best practices
Generate components, routes, services and pipes with a simple command
Easily preview your app locally while developing
Run your unit tests or your end-to-end tests with the breeze of a command
Angular
Webpack??
TypeScript???
Files and directories are created based on best-practices from the official Angular Style Guide
Webpack
npm dependencies are installed
TypeScript is configured for you
The Karma unit test runner is configured for you
The Protractor end-to-end test framework is configured for you
Blazing fast bundle times
Out of the box support for JS, CSS, HTML, file assets, and more - no plugins needed
Code is automatically transformed using Babel, PostCSS, and PostHTML when needed
Zero config code splitting
Automatically updates modules in the browser as you make changes during development, no configuration needed
Bundler, similar to webpack, but with faster bundle times
Can take any type of file as an entry point
Development server built in
Automatically rebuild your app as you change files
Supports hot module replacement for fast development
Preact - Svelte - CxJS - Dojo 2
Live collaboration
Private sandboxes
Unlimited sandboxes
Static file hosting capped at 500Mb
Edit sandboxes together in real time, Google Docs style
Use Classroom Mode to control who can make edits
With CodeSandbox you don't have to do anything to start programming
You don't have to set up a development environment
You don't have to install dependencies
create-react-app
npx create-react-app my-app
cd my-app
npm start
vue-cli
npm install -g @vue/cli
vue create my-project
cd my-project
npm start
angular-cli
npm install -g @angular/cli
ng new my-project
cd my-project
ng serve
parcel
npm install -g parcel-bundler
npm init -y
parcel index.html
Integrate ZEIT Now with sandboxes
Deploy a production-ready version of your application using the magic of Now
Build applications on CodeSandbox from start to finish
Now allows you to deploy and publish any kind of web application, website or services to the cloud with ease, speed and reliability.
The best way to get started with Now on your device is Now Desktop, a minimal application that runs in your menubar and comes with the following features:
Installs Now CLI and keeps it up to date automatically (the command line interface for interacting with Now).
Let's you deploy any kind of application or file by simply dragging and dropping it onto its menubar icon or selecting it using a file picker.
now
Now will deploy the app and give you a URL.
now alias https://my-web-app-avvuiuuwto.now.sh my-web-app.com
To map this domain name to the app's unique URL.
If you've made any changes to your app, you will need to deploy the latest version of your app.
now
Magic!
Client: the web application
Server: the Phoenix API server
All importers for CodeSandbox
https://github.com/codesandbox-app/codesandbox-importers
Includes the cli
@jonkemp
CodePen - https://codepen.io/jonkemp/pens/public/
CodeSandbox - https://codesandbox.io/u/jonkemp/sandboxes