Build bleeding-egde, isomorphic React applications with ease.
Isomorphic JavaScript applications are tough to setup. Either you buy into a framework like Next.js, fork a boilerplate, or set things up yourself. Noctis is a tool that gives you the awesome developer experience of create-react-app and enhances it with the configuration needed for SSR. Everything else is up to you.
Noctis comes with some features:
-
π₯ Hot Module Replacement for the client and auto restarts for the server. No manual reloads or restarts necessary
-
Comes with ESNext (ES6+) JavaScript goodies (through
babel-preset-noctis
) -
It already uses S(CSS) Modules
-
And all goodies from create-react-app
-
Creating an App β How to create a new app.
npx create-noctis-app my-app
cd my-app
npm start
(npx comes with npm 5.2+ and higher, see instructions for older npm versions)
Then open http://localhost:3000/ to see your 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.
Just create a project, and youβre good to go.
Youβll need to have Node >= 8 on your local development machine (but itβs not required on the server). You can use nvm (macOS/Linux) to easily switch Node versions between different projects.
To create a new app, run a single command:
npx create-noctis-app my-app
(npx comes with npm 5.2+ and higher, see instructions for older npm versions)
It will create a directory called my-app
inside the current folder.
Inside that directory, it will generate the initial project structure and install the transitive dependencies:
my-app
βββ node_modules
βββ package.json
βββ .gitignore
βββ public
β βββ favicon.ico
β βββ manifest.json
βββ src
βββ client
βββ client.css
βββ client.js
βββ server
βββ render.js
βββ server.js
βββ shared
βββ App.css
βββ App.js
βββ App.test.js
βββ logo.svg
That's it. You don't need to worry about setting up multiple webpack configs or other build tools.
Once the installation is done, you can open your project folder:
cd my-app
Inside the newly created project, you can run some built-in commands:
Runs the app in development mode.
Open http://localhost:3000 to view it in the browser.
Runs the test watcher (Jest) in an interactive mode. By default, runs tests related to files changed since the last commit.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed.