All Projects → alphagov → gds-nodejs-boilerplate

alphagov / gds-nodejs-boilerplate

Licence: MIT license
A Node.js project boilerplate for production apps

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to gds-nodejs-boilerplate

Nodebestpractices
✅ The Node.js best practices list (December 2021)
Stars: ✭ 72,734 (+403977.78%)
Mutual labels:  mocha
node-mocha-extjs
Framework for testing ExtJs applications
Stars: ✭ 19 (+5.56%)
Mutual labels:  mocha
seedpress-cms
A headless CMS built in Express for PostgresQL using Sequelize. Generally follows the Wordpress post and term schema.
Stars: ✭ 71 (+294.44%)
Mutual labels:  mocha
aurelia-dotnet-template
A starting point for new dotnet projects using the aurelia-framework with typescript and webpack.
Stars: ✭ 13 (-27.78%)
Mutual labels:  mocha
nodejs-integration-tests-best-practices
✅ Beyond the basics of Node.js testing. Including a super-comprehensive best practices list and an example app (April 2022)
Stars: ✭ 2,842 (+15688.89%)
Mutual labels:  mocha
fetch-action-creator
Fetches using standardized, four-part asynchronous actions for redux-thunk.
Stars: ✭ 28 (+55.56%)
Mutual labels:  mocha
Eslint Plugin Mocha
ESLint rules for mocha
Stars: ✭ 249 (+1283.33%)
Mutual labels:  mocha
ts-snippet
A TypeScript snippet compiler for any test framework
Stars: ✭ 29 (+61.11%)
Mutual labels:  mocha
chai-exclude
Exclude keys to compare from a deep equal operation with chai expect or assert.
Stars: ✭ 33 (+83.33%)
Mutual labels:  mocha
appium-tests
Tool to run Titanium mobile tests in Appium
Stars: ✭ 15 (-16.67%)
Mutual labels:  mocha
node-rest-api-starter
This repository is a template to avoid rewriting all the basic authentication code for REST API's built with Express.js, MongoDB.
Stars: ✭ 30 (+66.67%)
Mutual labels:  mocha
lisk-template
📄 Template repository for Lisk projects
Stars: ✭ 39 (+116.67%)
Mutual labels:  mocha
eslint-plugin-no-only-tests
ESLint rule for catching focused/only test blocks
Stars: ✭ 67 (+272.22%)
Mutual labels:  mocha
firebase-functions-typescript-starter
Create & test Firebase Cloud Functions in TypeScript
Stars: ✭ 101 (+461.11%)
Mutual labels:  mocha
static-webpack-boilerplate
🚀 Minimal & Modern Webpack Boilerplate for building static sites
Stars: ✭ 40 (+122.22%)
Mutual labels:  xo
Express Mongoose Es6 Rest Api
💥 A boilerplate application for building RESTful APIs Microservice in Node.js using express and mongoose in ES6 with code coverage and JsonWebToken Authentication
Stars: ✭ 2,811 (+15516.67%)
Mutual labels:  mocha
govuk-components
Lightweight components for developing with the GOV.UK Design System
Stars: ✭ 84 (+366.67%)
Mutual labels:  govuk
parse-server-test-runner
A tool for programmatically starting Parse Server
Stars: ✭ 18 (+0%)
Mutual labels:  mocha
mocha-simple-html-reporter
Simple HTML reporter for Mocha
Stars: ✭ 16 (-11.11%)
Mutual labels:  mocha
MojimojiMemoji
웨일 브라우저 확장앱🐋 모지모지메모지📝
Stars: ✭ 17 (-5.56%)
Mutual labels:  mocha

GDS Node.js boilerplate

This is a skeleton Node.js app running on Express with Nunjucks as a template engine.

It includes:

  • Grunt for compliation of sass/js
  • GOV.UK Frontend
  • Browserify with babelify and Nunjucksify
  • Mocha for testing
  • Middleware to set correlation headers
  • i18n language support
  • Snyk
  • StandardJS for linting
  • nvm (optional) for nodejs version

To get started clone the repo and run

$ npm install
$ npm start

(npm install might error about Snyk if it’s not set up but ignore for now)

Then go to http://localhost:3000/ to see it in action.

Using nvm (optional)

If you work across multiple Node.js projects there's a good chance they require different Node.js and npm versions.

To enable this we use nvm (Node Version Manager) to switch between versions easily.

  1. install nvm
  2. Run nvm install in the project directory (this will use .nvmrc)
  3. Follow the steps above to install and start
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].