Skip to content

Commit

Permalink
docs: se agrega documentación
Browse files Browse the repository at this point in the history
  • Loading branch information
cristopher1 committed Apr 5, 2024
1 parent 9410dd7 commit 89bbc5b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,5 +232,3 @@ Copyright © 2024 [Cristopher Jiménez Meza](https://github.com/cristopher1).<br
This project is [MIT](https://github.com/cristopher1/generator-koa2-api-generator/blob/master/LICENSE) licensed.

---

_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_
28 changes: 28 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Release notes

Yeoman generator that creates a base structure to create APIs in koa2 with sequelize and others tools.

**Features added in version 1.0.0:**

- generator-koa2-api-generator only include configurations for development environment.
- Adds configurations for commitlint, prettier, swagger, husky, openapi, sequelize, jsonwebtoken and other tools.
- Installs database drivers ans create Docker Compose configuration for postgresql, mysql and mariadb.
- Adds docker support.
- Adds docker compose support.
- Include dotenv and openapi-comment-parser in dev dependencies.
- Include ajv, ajv-errors and ajv-formats to use JSON Schemas.
- Include globs and jsonwebtoken in dependencies.
- If you do not want to use openapi.
- Delete the api/src/schemas/openapi folder.
- Delete the api/src/config/openapi.js file.
- Delete the api/src/routes/swagger folder.
- In the api/src/routes/index.js file, delete:
if (environment !== 'production') {
router.use('/docs', swaggerRouter.routes())
}
- cd api and run npm uninstall openapi-comment-parser.
- delete api-specification.yml
- If you do not want to use JSON Schemas.
- Delete the api/src/schemas/json folder.
- cd api and run npm uninstall ajv ajv-errors ajv-formats globs
- Delete import { simpleJsonSchemaValidation } from '../../schemas/json/index.js' in api/src/routes/user/registerRouter.js, api/src/routes/user/router.js and api/src/routes/authentication/tokenRouter.js

0 comments on commit 89bbc5b

Please sign in to comment.