Coder Social home page Coder Social logo

tudobemjz / node-express-mysql-typescript-api-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from a7urag/node-express-mysql-typescript-api-boilerplate

0.0 1.0 0.0 870 KB

Boilerplate for node express mysql typescript api project

TypeScript 98.05% JavaScript 1.95%

node-express-mysql-typescript-api-boilerplate's Introduction

Build Status Contributors Forks Stargazers Issues LinkedIn


NODE EXPRESS TYPESCRIPT boilerplate (+ typeorm)

A boilerplate for Node.js web applications.

Report Bug ยท Request Feature

Table of Contents

About The Project

There are not many node express boilerplate available on GitHub, which can be easily setup and run within few minutes.

Features:

  • Your time should be focused on creating something amazing. A project that solves a problem and helps others
  • You shouldn't be doing the same tasks over and over like setting up node, express, typescript and typeorm.
  • You should use same structure across your projects ๐Ÿ˜„
  • You should not write same functionality like user authentication again and again.

Of course, no one template will serve all projects since your needs may be different. So I'll be adding more in the near future. You may also suggest changes by forking this repo and creating a pull request or opening an issue.

A list of commonly used resources that I find helpful are listed in the acknowledgements.

Built With

This section should list any major frameworks that you built your project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.

Enviroment Variables:

Add these keys as environment variable

TOKEN_SECRET_KEY: Use to sign jwt tokens

DB_HOST: Database host

DB_USER: Database User

DB_PASSWORD: Database Password

DB_NAME: Database name

PORT: Api server port(default = 5000)

Getting started:

Local

No need to run migration in local as db sync is true.

yarn watch-ts  

Production

Migration
yarn migration:generate -- -n "<migration name>"

yarn migration:run
Deployment
yarn build-ts
Run
yarn start  

Test

Unit tests
yarn test

PS: using pm2 for production environment

TODO:

  • Use yarn instead of npm
  • Move user auth on api request to redis
  • Add social login support

node-express-mysql-typescript-api-boilerplate's People

Contributors

a7urag avatar dependabot[bot] avatar michael-siek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.