1.6.0 • Published 4 years ago

arctic-express v1.6.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Arctic Express

Arctic Express (Arctic) uses ESNext's decorators to simplify backend development.

Build Status Coverage Status npm version Dependabot Status

Features

Arctic has two main components Models and Routes. These two can be used independently but are made to work together.

  • ORM
  • Easy Express router creation
  • A powerful plugin system

Read the documentation to find out all features of Arctic.

Installation

Arctic is a node module available in the npm registry use npm or yarn to install Arctic and its dependencies.

npm install arctic-express

or

yarn add arctic-express

Quickstart

The code below is all the code you need to set up a Create Read Update Delete API.

import express from "express";
import { Database, Model, column, CrudRouter } from "arctic-express";

class Person extends Model {
    @column(String, { required: true })
    name: string;

    @column(Number)
    age: number;
}

const db = new Database("pg://[user]:[password]@[host]:[port]/[schema]");
const table = db.table(Person);

const app = express();
app.use("/people", new CrudRouter(table).expressRouter());
app.listen(3000, () => console.log("Server Started"));
1.6.0

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.11

4 years ago

1.4.12

4 years ago

1.4.9

4 years ago

1.4.8

4 years ago

1.4.10

4 years ago

1.4.7

4 years ago

1.4.6

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.10

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.1

4 years ago