Package Exports
- nodart
- nodart/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nodart) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
NodArt - The Art of Node.js.
A full-featured web framework for building progressive
MVC OOP server-side applications.
The framework adheres to the concept of "just install and use". Everything you need to run a server application:
- Templating
- Working with a session
- ORM client, Working with databases (MySQL, PostgresSQL, SQLite, MSSQL, OracleDB, CockroachDB, Amazon Redshift)
- Error and Exception handling
- Working with a command line; Creation of custom commands
- Routing
- Custom events and states
- Dependency injection
- Observer pattern
- Repository pattern
Everything of this is provided out of the hood. All that is needed for some of the above things to work is to specify the basic settings in the configuration file.
The framework provides a very flexible architecture, making it easy to extend and customize all of these things, up to and including completely changing the basic behavior by specifying class loaders and references in the same configuration file.
INSTALLATION
1. GIT
it downloads the current framework version's application with full usage examples.
git clone https://github.com/nodart-labs/nodart-app.git2. CLI
it creates a base application structure with some usage examples.
npx nodart create-appRUN UNDER DEVELOPMENT SERVER
npm run devRUN UNDER PRODUCTION
npm run startCOMMAND LINE INTERFACE
System Commands:
npx nodart [command name] [command action (optional)] --[argument name (optional)] [argument value]App Commands:
node cmd [command name] [command action (optional)] --[argument name (optional)] [argument value]DATABASE MIGRATION CLI
Creating and running a Single Migration
npx nodart migrate make --name migration-namenpx nodart migrate up | downCreating and running the Group of Migrations in a single file
npx nodart migrate make-source --name source-name --migrations[optional] migration1 migration2 ...npx nodart migrate source-up | source-down --name source-name --migrations[optional] migration1 migration2 ...Roll back the latest migration
npx nodart migrate rollback --all[optional]Run all migrations that have not yet been run
npx nodart migrate latestRetrieve and return the current migration version
npx nodart migrate versionReturn list of completed and pending migrations
npx nodart migrate listForcibly unlock the migrations lock table, and ensure that there is only one row in it
npx nodart migrate unlockDATABASE SEED CLI
Creates a new seed file, with the name of the seed file being added.
If the seed directory config is an array of paths, the seed file will be generated in the latest specified.
npx nodart seed make --name seed-namenpx nodart seed runCreating and running the Group of Seeds in a single file
npx nodart seed make-source --name source-name --seeds[optional] seed1 seed2 ...npx nodart seed source-run --name source-name --seeds[optional] seed1 seed2 ...