sulapjs v1.0.0
Sulap Js
Sulap JS is a Content Management System Generator written in JavaScript which provides users an instant client-server website model. It includes user management system and simple CRUD model. The package also provides users to put some options or configuration while initiating their website. Client template is built on React Js
, while server template is built on Express Js
and Node Js
with MongoDB and Mongoose as ODM. Sulap is created for assisting users or developers to save their time developing new website. By using few commands, in the future, user is able to build a simple client-server website. Do less, gain more!
Quick Start
Make sure you have Node.js and mongoDB installed in your computer and then run these commands:
$ npm install -g sulap
Then initiate your project with these command (sulap also intall the dependencies for you):
$ sulap jreng <project_name>
After sulap's done creating your project folder, to run the development server, you can use these commands:
$ cd <project_name>
$ sulap poof
To generate new database model for your project, simply use these commands in your project dir:
$ sulap bikinin --model <model_name> --attributes <key>:<data_type>,<key>:<data_type>,...
for example:
$ sulap bikinin --model todo --attributes title:string,dueDate:string,assignedTo:string
Available data type : string, image, text (rendered as textarea in client, acccepted as string in backend), boolean, number
Access the REST API via localhost = http://localhost:3000
Documentation is auto-generated by sulapjs, and can be found in ./<project_name>/README.md
MongoDB database name can be changed in ./<folder_name>/server/config/index.js
6 years ago