An open API service indexing awesome lists of open source software.

https://github.com/kapit4n/mockupero-api

REST full api to manage mockups
https://github.com/kapit4n/mockupero-api

api containerid docker javascript mongo sailsjs web-api web-app

Last synced: about 1 month ago
JSON representation

REST full api to manage mockups

Awesome Lists containing this project

README

          

# API Mockuper

A aplication that serve the logic to manage the design of a software development

## Requirements
* node js 6
* sails js 0.12.4
* MongoDB version: 2.6.5

## Installation

* npm install
* mkdir data
* mongod --dbpath=data
* mongo
db.createUser({
user: "accountUser",
pwd: "password",
roles: [
"readWrite",
"dbAdmin"
]
})
* mongo
db.permission.insert( { can: "edit" } )
db.permission.insert( { can: "view" } )

## Run unit test
mocha test/bootstrap.test.js test/integration/**/*.test.js

## Run
* sails lift
* http://localhost:1337/

## Docker installation

* docker build -t llll/api .
* docker run -p 1337:1337 -d llll/api
* docker logs containerId
* docker stop containerId
* curl -i localhost:1337