juananmuxed / template-ts-api

Template for API with Node, Express & Sequelize

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🌑️ Template TS API

⌨️ with ❀︎ by MuXeD

License Discord

GitHub Status

Release GitHub issues by-label GitHub commit activity

Demo deploy status

GitHub Workflow Status

🎱 Introduction

This is a simple template API REST to get data from game a DB with Express, Sequelize & Node.

β˜•οΈ Buy Me a Coffee

ko-fi

πŸ› Report a bug

Please follow one of this links to report a bug:

πŸ’» Development

To fix bugs or simply check code.

Requirements:

  • Install MariaDB (and create a database called template-ts)
  • Node 12 at least

Clone the repo

git clone https://github.com/juananmuxed/template-ts-api.git

Access to the folder

cd template-ts-api

Run NPM to install dependencies and run dev environment

cd npm i
cd npm run dev

Clone .env.example or rename as .env

And you can access to the swagger via web browser in http://localhost:3000/swagger

Docker production

Create a .env.production with params of DB and run npm run docker:deploy

Remember you need a Database with a name-of-table table chosen in the .env.production file.

πŸ— Built with

πŸ“Œ Versions

Used SemVer for versions. For all available version, see tags.

And here the Changelog

🍰 Contributing

Please read CONTRIBUTING for details on our CODE OF CONDUCT, and the process for submitting pull requests.

πŸ“„ License

This project is under license (MIT) - see LICENSE for details.

About

Template for API with Node, Express & Sequelize

License:MIT License


Languages

Language:TypeScript 90.4%Language:JavaScript 9.0%Language:Dockerfile 0.7%