1.0.9 • Published 3 years ago
@sqless/core v1.0.9
SQLess
SQLess is a framework for generating and maintaining a complete REST backend with SQL persistence, based on an OpenAPI spec.
Installation and quick startup
Add the SQLess core library to your devDependencies
:
npm i --save-dev @sqless/core
Generate your initial backend configuration using an OpenAPI spec:
sqless init -a your-api-spec.yaml
Start the dockerized PosgreSQL:
cd .sqless && docker-compose up db
Start the server:
sqless start
This will apply the necessary migrations in Postgres and start a REST server with a naive / default implementation of the methods from the OpenAPI spec.