A quick and dirty api framework. Great for quickly mocking out or prototyping an api.
A quick and dirty API framework, strapi is best suited for rapidly building API prototypes or mock APIs. It's built on express, but its specifically tailored for building REST APIs that return JSON.
$ npm install -g strapi
strapi from within a working directory, run
npm install, and
your api is bootstrapped and ready to go:
$ cd /path/to/your/strapi/project$ strapi$ npm install
While the included "Hello World" route is crazy awesome, you're bound to want to build in your own routes. It is your API, after all!
You can create all of your routes in the
routes directory. For convenience,
all routing modules in that directory are loaded by default into the
app.js. All you need to do is create your route definitions via
resjson foo: "bar" ;;
No surprise here, just run
app.js through node:
$ node app.js