Skip to content

1. Getting started

Erzhan edited this page Jun 29, 2019 · 3 revisions

Configuration

It is really easy to get started with LapisDB. First of all, configuration-wise, you need to enable emitDecoratorMetadata and experimentalDecorators in the tsconfig.json.

{
  "compilerOptions": {
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es6",
    ...
  },
}

Downloading and installation

Now you should install LapisDB itself. To do so, just install it from npm.

npm install --save lapisdb

Also you should install an adapter for LapisDB. Right now the only available option is the Level adapter (check it out here)

npm install --save lapisdb-level-adapter

Now you can proceed with other tutorials like Creating a datastore.

Clone this wiki locally