1.0.27-beta • Published 1 year ago
flamingodb v1.0.27-beta
FlamingoDB
!IMPORTANT Viewing alpha v1 documentation – usable but expect breaking changes. For stable version, see here
Install
npm install flamingodbUsage
Create a databases/db.json or databases/db.json5 file
{
"__collections__":[],
"__documents__":[],
"__datas__":[]
}You can read more about JSON5 format here.
Setup application
const flamingo = require('flamingodb');
const server = flamingo.server;
//run a local server
server.start_server('localhost', 3000, async (serve, host, port) => {
webserver = serve;
webserver.use(express.static(path.join(__dirname, 'views')));
console.log(`Server it\'s started and listen, http://${host}:${port}`);
});
//start a public server
exec('curl ip-adresim.app', function(error, stdout, stderr){
if(error){
console.log("public server not started");
return;
}
server.start_server(`${stdout}`, 6661, async (serve, host, port) => {});
});Routes
API calls are made automatically according to the following patterns:
GET /:collection
GET /:collection/:document
POST /:collection
PUT /:collection/:document
PATCH /:collection/:document
DELETE /:collection/:document
# Same for commentsDelete
DELETE /:collection/:document
DELETE /:collection/:document?args=values1.0.25-beta
1 year ago
1.0.23-beta
1 year ago
1.0.22-beta
1 year ago
1.0.26-beta
1 year ago
1.0.21-beta
1 year ago
1.0.27-beta
1 year ago
1.0.19-beta
1 year ago
1.0.20-beta
1 year ago
1.0.16-beta
1 year ago
1.0.17-beta
1 year ago
1.0.18-beta
1 year ago
1.0.15-beta
1 year ago
1.0.11-beta
1 year ago
1.0.12-beta
1 year ago
1.0.8-beta
1 year ago
1.0.14-beta
1 year ago
1.0.10-beta
1 year ago
1.0.13-beta
1 year ago
1.0.9-beta
1 year ago
1.0.7-beta
1 year ago
1.0.6-beta
2 years ago
1.0.2-beta
2 years ago
1.0.0-beta
2 years ago
1.0.5-beta
2 years ago
1.0.3-beta
2 years ago
1.0.4-beta
2 years ago
1.0.4
2 years ago
1.0.1-beta
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.0
2 years ago