Skip to content

This repository gives the developer an Express Starter written in Typescript to kick off there development fast 🔥🔥🔥

Notifications You must be signed in to change notification settings

jmaicaaan/express-starter-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

express-starter-ts

This repository gives the developer an Express Starter written in Typescript to kick off there development fast 🔥🔥🔥

This is inspired from the Java - Struts Framework which we customized to make an opinionated starter pack for the developer to kick off there development fast.

We also promote the Single Responsibility principle as we believe that it will be easier to maintain and provide unit tests when it scales up.

flow

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  • Node 8.4.0 or higher (you can try to manage your versions using nvm)

Installing

  • Set up your database and make sure you change the config to your own setup. You can find your database config under config/ormconfig.json for your development environment. Change accordingly to your chosen environment (test/production)

    {
      "type": "postgres",
      "host": "localhost",
      "port": 5432,
      "username": "sample",
      "password": "sample",
      "database": "sample",
      "logging": false
    }
    

    For more info like supported database driver visit TypeORM.

  • And start your application by running this in the terminal. This would watch for changes and rebuild(transpiled) your application

    npm run watch
    

With that, you can see in your terminal that the app is ready to listen for requests. For example:

server listening at http://localhost:3000

Running the tests

To run the test suites, type in your terminal

npm run test

Take note that you need to change your database config for test environment. See installing on how to setup database.

Built With

Contributing

Open for pull requests!

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository

Authors

Acknowledgments

  • Hands down for the great works of pleerock

About

This repository gives the developer an Express Starter written in Typescript to kick off there development fast 🔥🔥🔥

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published