0.0.0-dev.1 • Published 11 months ago
apeframework v0.0.0-dev.1
Ape Framework
Node.js API framework.
NPM package: apeframework
GitHub repository: ApeCommerce/ape-framework
Installation
npm install apeframeworkHello Ape!
Let's make an API serving a /hello endpoint, in TypeScript.
Create a boot.ts file at the root of the project:
import type { Boot, Bundle } from 'apeframework/app';
const welcome: Bundle = {
bundleId: 'welcome',
name: 'Welcome',
routes: async () => [
{
endpoint: {
method: 'GET',
path: '/hello',
},
handler: async (request, reply) => reply.send('Hello Ape!'),
},
],
};
const boot: Boot = {
bundles: async () => [welcome],
};
export default boot;Start the API using Ape Framework's CLI:
npx ape-cli-ts api startRequest the API:
curl http://localhost:3000/hello0.0.0-dev.20
11 months ago
0.0.0-dev.21
11 months ago
0.0.0-dev.22
11 months ago
0.0.0-dev.23
11 months ago
0.0.0-dev.18
11 months ago
0.0.0-dev.19
11 months ago
0.0.0-dev.17
12 months ago
0.0.0-dev.16
12 months ago
0.0.0-dev.15
1 year ago
0.0.0-dev.13
1 year ago
0.0.0-dev.14
1 year ago
0.0.0-dev.11
1 year ago
0.0.0-dev.10
1 year ago
0.0.0-dev.5
1 year ago
0.0.0-dev.4
1 year ago
0.0.0-dev.3
1 year ago
0.0.0-dev.9
1 year ago
0.0.0-dev.8
1 year ago
0.0.0-dev.7
1 year ago
0.0.0-dev.6
1 year ago
0.0.0-dev.2
2 years ago
0.0.0-dev.1
2 years ago