Skip to content

Tool for converting DB model to CRUD backend effortlessly.

License

Notifications You must be signed in to change notification settings

MateoGiraz/gerson-api

Repository files navigation

gerson-api


NPM Version NPM Downloads

Installation:

$ npm install gerson-api

Make sure you have NodeJS installed on your computer with a version that supports Typescript.

About the project:

Gerson API is a tool developed in Typescript oriented to backend development and APIs.

With a very simple syntax and configuration, Gerson allows you to create your first endpoint in very few lines.

import { App } from 'gerson-api';

const app = new App();

app.get('/', (req, res) => {
    res.send('Hello from Gerson!');
});

app.run();

You might also want Gerson to create Endpoints for you. This methods use gerson-db. Initialize your database (postgres & mysql are supported), and then define the name of your table, and its attributes. Gerson will create GET & POST methods for each attribute of your model.

import { App } from 'gerson-api';

const app = new App();

app.initializeDatabase('postgresql://postgres:secret@localhost:5432/testDB');
app.initializeEndpoints('users', ['name', 'email']);

Features:

  • Simple and fast routing
  • Query, URL and Body parameters
  • Easy to use
  • HTML template rendering

Authors:

This project was originally created by Mateo Giraz, Matías Corso and Mateo Bonino

License:

MIT

About

Tool for converting DB model to CRUD backend effortlessly.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •