GithubHelp home page GithubHelp logo

forkedit / typescript-express-typeorm-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from v2xnetwork/typescript-express-typeorm-boilerplate

0.0 1.0 0.0 62 KB

A NodeJs boilerplate with Typescript, TypeORM, ExpressJs & Mocha.

License: MIT License

JavaScript 2.59% TypeScript 97.41%

typescript-express-typeorm-boilerplate's Introduction

Typescript Express Typeorm Boilerplate

Build Status

Requirements

  • Node v8+
  • npm v6+
  • PostgreSQL

Instructions

  • Download the repo.
  • Create 2 PostgreSQL databases. One for testing & other as main database
  • Copy the env.example file from root of project and create a new .env file from it.
  • Set the configuration parameters there (App port, app host, database host, port, username, password etc)
  • Install the dependencies by running npm install
  • Start the project by running npm start
  • If you want to run in watch mode, then run npm run watch.
  • In Postman or any other client, send a GET request to <host:port>/api/ to see the API welcome response.

Testing

  • Run npm test to start the unit tests.

API

Documentation

Coming soon...

Authentication

We use JWT Bearer authentication. To get a authentication token, send a POST request to /api/login` with a valid email & password. You'll receive the token in response.

To authenticate further requests, set HTTP header Authorization to Bearer <auth-token> in http request.

typescript-express-typeorm-boilerplate's People

Contributors

shumailxyz 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.