NodeArch is a backend framework for Node.js that aims to address design and architectural issues when building Node.js applications. It uses Typescript and dependency injection to bring concepts from languages like Java and C# to Node.js, while still taking advantage of Javascript's flexibility and Node.js's non-blocking I/O model. NodeArch is designed to work seamlessly with existing tools and libraries, rather than replacing them, and focuses on creating a readable, maintainable, and scalable application architecture. It acts as a glue that connects all your tools and libraries together, making it easier to develop and maintain your Node.js applications.
To create new NodeArch apps, you need to install the NodeArch command-line interface (CLI) on your machine. To do this, open your terminal and run the following command:
npm i -g @nodearch/cli
Once you have installed the NodeArch command-line interface (CLI), you can use it to see the available options and usage instructions. To do this, open your terminal and run the following command:
nodearch -h
# start your app
nodearch start
# start your app in Watch mode
nodearch start -w
# run test cases
nodearch test
# run test cases in watch mode
nodearch test -w
# build your app ( only required in production mode )
nodearch build
โฏ nodearch -h
Usage: nodearch <command> [options]
Commands:
nodearch build Build NodeArch app [aliases: b]
nodearch new Generate new NodeArch APP [aliases: n]
nodearch start Start NodeArch APP [aliases: s]
nodearch test run automated testing [aliases: t]
Options:
-y, --notify turn desktop notifier on or off [boolean] [default: true]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Examples:
nodearch new generates new app
nodearch build build existing app from the current directory
nodearch start starts existing app from the current directory
for all the options, please check the documentation
If you would like to contribute to the NodeArch project, report an issue, or request a new feature, you can use the GitHub Issue tracker to communicate with the development team. Contributions, issues, and feature requests are all welcome, and we encourage you to share your thoughts and ideas with us through the Issue tracker. If you have an idea for improving NodeArch, adding new functionality, or suggesting something else, please don't hesitate to use the Issue tracker to let us know.
To clone the NodeArch project onto your local machine, you can use the following command in your terminal:
git clone https://github.com/nodearch/nodearch.git
This will create a local copy of the NodeArch project on your machine, allowing you to access the source code and make changes as needed.
Switch to the repo directory, and then install dependencies
rush install
Now build the project
rush build
# Build the project
rush build
# Run test cases
rush test
# Add NPM package as a dependency
rush add
For more details on how to use Rush to add packages, commands, build and run stuff. check it on the official Rush website
Give a โญ๏ธ if this project helped you!
This project is MIT licensed.
Open Source Software made with โค๏ธ for the Node.js Community. Ahmed Ali