Create reSolve App 🚀
This package creates an empty application based on the reSolve framework (
hello-world example). Use the
--example option to create another sample application. reSolve applications are built on the CQRS and Event Sourcing principles and use React + Redux on the client side.
Create reSolve App allows you to specify application blocks (aggregates, read models, and UI elements (React components)) in a semi-declarative manner. The
resolve-scripts package deploys API backend and domain services to interact with the client. The
resolve-redux package automates the client-server interaction.
Refer to the React/Redux Links document for details on subject-related technologies and links to the corresponding resources.
- Getting Started - How to create a new app
- User Guide - Information on apps created with the Create reSolve App
--example <folder>- creates an application from examples. The default example is
--commit <sha>- use the example code from the specific branch or commit.
-V- show the version number.
Quick Overview 🔎
Note: Installing a package globally may require administrative privileges. This means you have to use the
sudocommand for Unix-based systems or run a terminal with administrative privileges on Windows systems.
npm i -g create-resolve-appcreate-resolve-app my-resolve-appcd my-resolve-appnpm run dev
After that, your app (the
http://localhost:3000/ URL) opens in the default browser.
Create an App
Create a new reSolve application in one of the following ways:
yarn:yarn create resolve-app my-resolve-app
npx:npx create-resolve-app my-resolve-app
npm:npm i -g create-resolve-appcreate-resolve-app my-resolve-app
This creates the
my-resolve-app directory in the current directory and places your new app into it.
Available Scripts 📋
Run in the Development Mode
Once the installation completes, you can start your app by running
npm run dev or
yarn dev in your application directory.
This runs the app in the development mode. Open the http://localhost:3000 URL to view it in your default browser.
The page reloads as you edit source code files. All errors appear in the console.
Build and Optimize for Production
npm run build or
yarn build command builds the client and server bundles for production using Webpack.
Building is performed in the
NODE_ENV === 'production' mode, so the build is optimized.
The HTTP server for the serving client bundle and assets is not included.
Run the App From the Build Directory
npm start or
Run Unit Tests with Jest
npm test or
Run Functional Tests with TestCafe
npm run test:functional or
resolve-create-app script adds a copy of the User Guide to your project folder as the