Skip to content
/ maap Public
forked from steakholders/maap

Maap is a Node.js module for generating administration style interfaces

License

Notifications You must be signed in to change notification settings

zsavajji/maap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MaaP - MongoDB as an Admin Platform

MaaP it's an admin platform for generating administration style interfaces, based on Node.js and MongoDB stack.
Its purpose is to make it simple for developers to implement interfaces for manage business data with ease, providing a DSL that allows you to define the content of your webpages in minutes.

Usage

MaaP is an npm package. Setting up MaaP new Project:

npm install -g maap
maap create project
cd project
npm install
vim config.js
npm start

For more details see First usage from wiki.

Configuration Files

You can edit these configuration files:

config.js                    # Back-end configuration
app/scripts/config.js        # Front-end configuration
collections/*.dsl            # DSL configuration File 

For more information see New Project configuration from wiki.

Populate test database

For populate the database with test collections, move to ./extra/ directory. JSON files contain test data.

populate-users-db.sh and populate-data-db.sh are scripts that populate the database with example data, To use them on a local database, do:

./populate-users-db.sh --host localhost:27017 --db users ./populate-data-db.sh --host localhost:27017 --db data

For more details see First usage from wiki.

DSL Configuration

Here are a few common configurations for a DSL file:

collection(
	name: "userscollection", 
	label: "Users", 
	id: "myId", 
	weight: 1 
) {
	index( 
		perpage: 50, 
		populate: "father", 
		sortby: "username", 
		order: "asc", 
		query: { country: "Italy"}
	) {
		column(
			name: "username", 
			label: "Username", 
			sortable: true, 
			selectable: true, 
			transformation: function(val) { return "The Great " + val; }
		)
		// ...
	}
	show(
		populate: "father"
	) {
		row(
			name: "username", 
			label: "Username", 
			transformation: function(val) { return "The Great " + val; }
		)
		// ...
	}
} 

For see more details DSL File Configuration and DSL Configuration File Example from wiki.

About

Maap is a Node.js module for generating administration style interfaces

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.9%
  • CSS 23.8%
  • HTML 12.3%
  • Makefile 1.5%
  • Shell 1.5%