From 6c16d5010336585e5e4b1d1965e78df78f8ae603 Mon Sep 17 00:00:00 2001 From: Court Ewing Date: Sat, 19 Sep 2015 17:21:18 -0400 Subject: [PATCH] Rename project to mockapi While this still works, the project is very lightly maintained and almost never used by anyone. A more active project (currently called Lusty) is interested in using this name. Strapi is a good name that deserves an active project. --- README.md | 12 ++++++------ bin/{strapi => mockapi} | 0 cli.js | 14 +++++++------- examples/hello-world/app.js | 12 ++++++------ index.js | 2 +- lib/{strapi.js => mockapi.js} | 0 package.json | 10 +++++----- 7 files changed, 25 insertions(+), 25 deletions(-) rename bin/{strapi => mockapi} (100%) rename lib/{strapi.js => mockapi.js} (100%) diff --git a/README.md b/README.md index 4dfd71e..1dfe9e9 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,23 @@ -# Strapi - Bootstrap your api +# mockapi - Bootstrap your api -A quick and dirty API framework, strapi is best suited for rapidly building +A quick and dirty API framework, mockapi is best suited for rapidly building API prototypes or mock APIs. It's built on [express](http://expressjs.com/), but its specifically tailored for building REST APIs that return JSON. ## Installation ```js -$ npm install -g strapi +$ npm install -g mockapi ``` ## Usage / Getting Started -Simply run `strapi` from within a working directory, run `npm install`, and +Simply run `mockapi` from within a working directory, run `npm install`, and your api is bootstrapped and ready to go: ``` -$ cd /path/to/your/strapi/project -$ strapi +$ cd /path/to/your/mockapi/project +$ mockapi $ npm install ``` diff --git a/bin/strapi b/bin/mockapi similarity index 100% rename from bin/strapi rename to bin/mockapi diff --git a/cli.js b/cli.js index fc9eb05..c94d7aa 100644 --- a/cli.js +++ b/cli.js @@ -9,20 +9,20 @@ var route = [ ].join(os.EOL); var app = [ - 'var strapi = require(\'strapi\')' - , ' , express = strapi.express;' + 'var mockapi = require(\'mockapi\')' + , ' , express = mockapi.express;' , '' , 'var app = express();' - , 'var routes = strapi.routes(\'routes\', __dirname);' + , 'var routes = mockapi.routes(\'routes\', __dirname);' , '' , 'app.set(\'port\', process.env.PORT || 3000);' , 'app.use(express.favicon());' , 'app.use(express.logger(\'dev\'));' , 'app.use(express.bodyParser());' - , 'app.use(strapi.middleware.forceJsonResponse());' + , 'app.use(mockapi.middleware.forceJsonResponse());' , 'app.use(app.router);' - , 'app.use(strapi.middleware.notFoundHandler());' - , 'app.use(strapi.middleware.errorHandler(app.get(\'env\')));' + , 'app.use(mockapi.middleware.notFoundHandler());' + , 'app.use(mockapi.middleware.errorHandler(app.get(\'env\')));' , '' , '// api routes' , 'app.get(\'/hello/:world\', routes.hello.get);' @@ -41,7 +41,7 @@ var pkg = JSON.stringify({ start: "node app.js" }, dependencies: { - strapi: require('./package.json').version + mockapi: require('./package.json').version } }); diff --git a/examples/hello-world/app.js b/examples/hello-world/app.js index 7bac18c..1a7b321 100644 --- a/examples/hello-world/app.js +++ b/examples/hello-world/app.js @@ -1,17 +1,17 @@ -var strapi = require('../../lib/strapi') - , express = strapi.express; +var mockapi = require('../../lib/mockapi') + , express = mockapi.express; var app = express(); -var routes = strapi.routes('routes', __dirname); +var routes = mockapi.routes('routes', __dirname); app.set('port', process.env.PORT || 3000); app.use(express.favicon()); app.use(express.logger('dev')); app.use(express.bodyParser()); -app.use(strapi.middleware.forceJsonResponse()); +app.use(mockapi.middleware.forceJsonResponse()); app.use(app.router); -app.use(strapi.middleware.notFoundHandler()); -app.use(strapi.middleware.errorHandler(app.get('env'))); +app.use(mockapi.middleware.notFoundHandler()); +app.use(mockapi.middleware.errorHandler(app.get('env'))); // api routes app.get('/hello/:world', routes.hello.get); diff --git a/index.js b/index.js index 84a0395..111cb63 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -module.exports = require('./lib/strapi'); +module.exports = require('./lib/mockapi'); diff --git a/lib/strapi.js b/lib/mockapi.js similarity index 100% rename from lib/strapi.js rename to lib/mockapi.js diff --git a/package.json b/package.json index 3843d49..81e5a1a 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,18 @@ { - "name": "strapi", + "name": "mockapi", "description": "A quick and dirty api framework. Great for quickly mocking out or prototyping an api.", - "version": "0.0.7", + "version": "0.0.8", "author": "Court Ewing ", "keywords": [ - "api", "framework", "rest", "restful", "prototype", "mock", "express", "strapi" + "api", "framework", "rest", "restful", "prototype", "mock", "express", "mockapi" ], "dependencies": { "express": "3.2.x" }, - "repository": "git://github.com/epixa/strapi", + "repository": "git://github.com/epixa/mockapi", "main": "index", "bin": { - "strapi": "./bin/strapi" + "mockapi": "./bin/mockapi" }, "engines": { "node": "0.10.x"