1.0.24 • Published 2 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
2 years ago
1.0.23
2 years ago
1.0.22
2 years ago
1.0.20
2 years ago
1.0.19
2 years ago
1.0.18
2 years ago
1.0.16
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago