cleissonbarbosa / api-rest-typescript

Rest API with NodeJS + Typescript + Prisma + OpenAi integration

Home Page:https://api-rest-node-tys2.onrender.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ›£οΈ API Rest with Typescript (example)

GitHub repo size GitHub language count GitHub forks Bitbucket open issues Bitbucket open pull requests

🌐 View Demo

logo

This is an example project, it can be used as a boilerplate to create a rest api with best practices and some ready-made features such as: WebToken Authentication (JWT), OpenAi API Integration, Redis cache, Admin CRUD with AdminJS etc.

πŸš€ Tweaks and improvements

The project is still under development and the next updates will focus on the following tasks:

  • Improvement OpenAi integration
  • Run project with docker
  • Error middleware
  • JWT token auth
  • DDD
  • Tests

πŸ’» Prerequisites

Before you begin, make sure you've met the following requirements:

  • You have installed the latest version of <Typescript / NodeJS 18 / Docker>.

πŸ’Ύ installation

To install follow these steps:

Install dependencies with yarn or npm:

yarn

or:

npm i

β˜• using

run the following command:

yarn docker:run && yarn dev

or:

npm run docker:run && npm run dev

this will upload a container in docker with postgresql, redis, zookeeper and kafka

πŸ“« Contributing to the project

To contribute to the project, follow these steps:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and commit them: git commit -m '<commit_message>'
  4. Push to original branch: git push origin <project_name> / <location>
  5. Create the pull request.

Alternatively, see the GitHub documentation on how to create a pull request.

🀝 Sponsors

Thanks to the following people who contributed to this project:

Foto do Cleisson Barbosa no GitHub
Cleisson Barbosa

πŸ“ License

This project is under license. See the LICENSE file for more details.

⬆ back to the top

About

Rest API with NodeJS + Typescript + Prisma + OpenAi integration

https://api-rest-node-tys2.onrender.com


Languages

Language:TypeScript 100.0%