Get started with feathers CDN
MIT licensed
Feathers: Lightweight Node.js for simple, real-time APIs, compatible with popular tech.
Tags:- feathers
- REST
- socket.io
- realtime
Stable version
Copied!
How to start using feathers CDN
// Import required Feathers modules
import express from '@feathersjs/express';
import bodyParser from '@feathersjs/bodyparser';
import cors from '@feathersjs/cors';
import { Application } from '@feathersjs/feathers';
// Initialize the application and configure middleware
const app: Application = express(feathers());
app.use(bodyParser.json());
app.use(cors());
// Define a simple service
app.use('/users', {
async find() {
return [{ id: 1, name: 'John Doe' }];
},
});
// Start the server
const port = process.env.PORT || 3030;
app.listen(port, () => {
console.log(`Feathers server listening on port ${port}`);
});
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
4.3.10
4.3.11
4.4.0
4.4.1
4.4.3
4.5.0
4.5.1
4.5.10
4.5.11
4.5.12
4.5.15
4.5.16
4.5.17
4.5.2
4.5.3
4.5.5
4.5.7
4.5.8
4.5.9
5.0.0
5.0.0-beta.0
5.0.0-beta.1
5.0.0-pre.0
5.0.0-pre.1
5.0.0-pre.10
5.0.0-pre.11
5.0.0-pre.14
5.0.0-pre.15
5.0.0-pre.16
5.0.0-pre.17
5.0.0-pre.18
5.0.0-pre.19
5.0.0-pre.2
5.0.0-pre.20
5.0.0-pre.21
5.0.0-pre.22
5.0.0-pre.23
5.0.0-pre.24
5.0.0-pre.25
5.0.0-pre.26
5.0.0-pre.27
5.0.0-pre.28
5.0.0-pre.29
5.0.0-pre.3
5.0.0-pre.30
5.0.0-pre.31
5.0.0-pre.32
5.0.0-pre.33
5.0.0-pre.34
5.0.0-pre.35
5.0.0-pre.36
5.0.0-pre.37
5.0.0-pre.38
5.0.0-pre.4
5.0.0-pre.5
5.0.0-pre.6
5.0.0-pre.9
5.0.1
5.0.10
5.0.11
5.0.12
5.0.13
5.0.14
5.0.15
5.0.16
5.0.17
5.0.18
5.0.19
5.0.20
5.0.21
5.0.22
5.0.23
5.0.24
5.0.25
5.0.26
5.0.27
5.0.28
5.0.29
5.0.3
5.0.30
*** 5.0.31
5.0.4
5.0.5
5.0.6
5.0.7
5.0.8
5.0.9