Knowledges: JS

Knowledges: JS

๐Ÿ–– Introduction

This page includes links to articles and tools related to our JavaScript-based stacks. The goal is to keep a history of the reflections and conclusions made for the construction of the stack.

๐Ÿ“‘ Informations

  • Bold : used
  • Italic : not used

๐Ÿ”— Menu

Dependencies

๐Ÿ“„ Articles :

  • WIP

๐Ÿ”ง Tools :

๐Ÿš€ Conclusion

Both are fine, :), do your own choice. We put npm by default for simplicity.

Tests

๐Ÿ“„ Articles :

๐Ÿ”ง Tools :

  • ava - Testing can be a drag. AVA helps you get it done.
  • jasmine - A jasmine runner for node projects.
  • mocha - simple, flexible, fun javascript test framework for node.js & the browser
  • jest - Delightful JavaScript Testing
  • supertest - Super-agent driven library for testing node.js HTTP servers using a fluent API.
  • chai - BDD / TDD assertion framework for node.js
  • should - BDD style assertions for node.js -- test framework agnostic

๐Ÿš€ Conclusion

we prefer Jest because of trends, with supertest for simplicity. With this config, chai or should was useless.

CI

๐Ÿ“„ Articles :

๐Ÿ”ง Tools :

๐Ÿš€ Conclusion

Travis, Codeclimate, Coveralls (more details than codeclimate), EsLint, Dependencies + GreenKeeper, Snyk.io

Password

๐Ÿ“„ Articles :

๐Ÿ”ง Tools :

  • bcrypt - way to test and deploy your projects
  • crypto-js - JavaScript library of crypto standards.

Logs

๐Ÿ“„ Articles :

๐Ÿ”ง Tools :

  • winston - A logger for just about everything.
  • morgan - HTTP request logger middleware for node.js.

๐Ÿš€ Conclusion

winston for everything, morgan for http (trends).