Skip to content

Instantly share code, notes, and snippets.

View eliashussary's full-sized avatar
🍊

Elias Hussary eliashussary

🍊
  • Toronto, Canada
  • 03:50 (UTC -05:00)
View GitHub Profile
// routes.js
const routes = [
{
path: '/',
component: Home,
exact: true
},
{
path: '/gists',
component: Gists
@denji
denji / golang-tls.md
Last active November 15, 2026 00:06 — forked from spikebike/client.go
Simple Golang HTTPS/TLS Examples
@tracker1
tracker1 / 01-directory-structure.md
Last active June 21, 2026 12:47
Anatomy of a JavaScript/Node project.

Directory structure for JavaScript/Node Projects

While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.

Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.

Directories

  • lib/ is intended for code that can run as-is
  • src/ is intended for code that needs to be manipulated before it can be used