Giter Site home page Giter Site logo

inakianduaga / node-express-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
37.0 37.0 16.0 121 KB

A typescript nodejs express boilerplate server, w/ gulp as the build system

License: MIT License

JavaScript 71.09% TypeScript 25.66% HTML 1.19% Shell 2.05%

node-express-boilerplate's People

Contributors

gugic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-express-boilerplate's Issues

Base boilerplate

  • Define package.json dependecies
    • express stack
    • jasmin-js for testing
    • gulp & its dependencies
    • nodemon
  • Add base express application, convert to typescript

Move .env files outside of src folder

Since the source folder is not going to be included (even if it is, user shouldn't have to look into it), move the .env, .env.example files to the root of the project

Improve typing

  • Add (res: express.Response, req: express.Request) types to the routes
  • Try to convert routes to modules

Typescriptify gulp build

typescriptify the gulp build system

http://dinozafirakos.com/2014/06/30/typescript-and-gulp/
https://gist.github.com/develar/124104ed476092f441c5

DONE

Typescript compilation task

https://github.com/ivogabe/gulp-typescript

  • Needs to use the tsconfig file we defined before
  • Needs to use the src/out folders based on the tsconfig file
  • Specify typescript version to use manually so we can use 1.5 alpha

Typescript linter task

  • Use tslint linter, and a tslint.json config file
    See here for example

https://github.com/DanWahlin/AngularIn20TypeScript/blob/master/gulpfile.js

Serve tasks

  • Serve task (using nodemon)

Versioning

  • package bump task. We need to check it

Notifications

  • Add gulp notifications for test/build complete

Dockerize app

Add a Dockerfile development file where we can run gulp commands with the app mounted, so we can serve the app without having node installed locally.

Just a Comment

Just thought I'd comment on this shit piece of coding rubbish....

Add travis build config

Once the boilerplate is working and building

  • Add a travis config with a task that
    • Lints code
    • Builds the server
    • Runs tests

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.