1.0.9 • Published 5 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/coreGenerate your initial backend configuration using an OpenAPI spec:
sqless init -a your-api-spec.yamlStart the dockerized PosgreSQL:
cd .sqless && docker-compose up dbStart the server:
sqless startThis will apply the necessary migrations in Postgres and start a REST server with a naive / default implementation of the methods from the OpenAPI spec.