Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ajgenesisnode-express

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajgenesisnode-express

AjGenesis for Node, Express tasks and templates

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

AjGenesisNode Express

AjGenesisNode Express tasks and templates, to generate web sites using Express. WIP.

Setup

Install Node.js.

Install latests version of AjGenesis for Node and Express modules as global modules:

npm install ajgenesis -g
npm install ajgenesisnode-express -g

In Linux, you should use sudo npm ... to install global modules

Quick start

In any working directory, create an application

mkdir myapp
cd myapp
ajg install express
ajg init
npm install

Edit ajgenesis/models/project.json created by the above init command

project.json

{
    "name": "myapp",
    "title": "Myapp"
}

The created directory contains the seed of an Express 4.x application.

And there is a subdirectory ajgenesis with:

  • ajgenesis/models: where the free model files reside
  • ajgenesis/module: verbs to run in express ajgenesis module, with libs and templates
  • ajgenesis/modules: additional ajgenesis modules

Let add some entities and propeties, using then entity module (installed under ajgenesis/modules/entity):

ajgenesis entity:add customer
ajgenesis entity:addproperty customer name
ajgenesis entity:addproperty customer address
ajgenesis entity:add supplier
ajgenesis entity:addproperty supplier name
ajgenesis entity:addproperty supplier address

Entity .json files are added to ajgenesis/models/entities folder. You can edit those file manually, instead of relaying in auxiliary entity module.

Generate the web site:

ajgenesis generate

The web site is generated in the current directory.

The site use MongoDB. Install it from here.

Start the site

npm start

The site is available in your browser using http://localhost:3000.

Development

npm install -g ajgenesis
git clone git://github.com/ajlopez/AjGenesisNode-Express.git
cd AjGenesisNode-Express
npm link ajgenesis
npm install
npm test

Versions

  • 0.0.1: Published
  • 0.0.2: Published. Use of local entity module. Models in ajgenesis/models
  • 0.0.3: Published. Use the current directory as Express application instead of build
  • 0.0.4: Published. Generate code for Express 4.x
  • 0.0.5: Published. First references. Install entity, model modules instead of using node_modules
  • 0.0.6: Published. Using entities folder in model
  • 0.0.7: Published. New folder structure, model and entity modules, init verb

References

Useful articles to use in development:

Contribution

Feel free to file issues and submit pull requests � contributions are welcome.

If you submit a pull request, please be sure to add or update corresponding test cases, and ensure that npm test continues to pass.

Keywords

FAQs

Package last updated on 24 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc