1.0.24 • Published 4 years ago
lexpi v1.0.24
Lexpi
Quickly define data model and use this model to build applications.
Usage
yarn add lexpi
or
yalc publish & yalc add lexpi / yal update
yalc push
for local development.
Initial setup
import { App, AppConfig, DbStrategy, RestStrategy } from 'lexpi';
import path from 'path';
console.log(path.resolve('db'));
const config: AppConfig = {
enititesPath: path.resolve('src/models'),
db: {
strategy: DbStrategy.NeDb,
dbPath: path.resolve('db'),
},
api: {
enable: true,
swagger: {
enable: true,
endpoint: '/documentation',
},
host: 'localhost',
port: 3005,
strategy: RestStrategy.Fastify,
},
};
(async () => {
const app = new App(config);
await app.start();
})();
1.0.24
4 years ago
1.0.23
4 years ago
1.0.22
4 years ago
1.0.20
4 years ago
1.0.19
4 years ago
1.0.18
4 years ago
1.0.16
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago