GithubHelp home page GithubHelp logo

jacksonfa / node-basics Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1004 KB

Repo for examples and techniques about APIs, NodeJS, DDD and TDD

JavaScript 2.28% TypeScript 97.72%
clean-architecture ddd-patterns fastify knexjs nestjs nodejs prisma solid-principles tdd vitest

node-basics's Introduction

NodeJS Basics to Advanced

Ignite Node.js 2023 - Module 01 (Fundamentals, Node HTTP and Streams)

Running the project

After clone the repo, inside of 01-fundamentals-http-streams and with node v20.10 run:

  • npm install
  • npm run dev

To import a csv file:

  • Edit file: src/csv/tasks.csv
  • Run: npm run import:csv

The available endpoints are in: src/client.http

Ignite Node.js 2023 - Module 02 (API Rest, Fastify and Knex)

Running the project

After clone the repo, inside of 02-rest-fastify-knex and with node v20.10 run:

  • yarn
  • setup .env and .env.test files like examples
  • yarn knex migrate:latest
  • yarn dev
  • to e2e tests: yarn test

The available endpoints are in: src/client.http

Ignite Node.js 2023 - Module 03 (Solid, Design Patterns and JWT)

Running the project

After clone the repo, inside of 03-solid-patterns-jwt and with node v18.10 run:

  • to install dependencies: npm install
  • setup .env file like example
  • to run postgreSQL: docker compose up -d
  • to run: npm run dev
  • to build: npm run build
  • to unit tests: npm run test or npm run test:watch
  • to e2e tests:
    • npm run test:create-prisma-environment
    • npm run test:install-prisma-environment
    • npm run test:e2e or npm run test:e2e:watch

Some available endpoints are in insomnia.json to import for insomnia

Ignite Node.js 2023 - Module 04 (DDD, Clean Arch and TDD)

Running the project

After clone the repo, inside of 04-ddd-clean_arch and with node v18.10 run:

  • to install dependencies: npm install
  • to unit tests: npm run test or npm run test:watch

Ignite Node.js 2023 - Module 05 (NestJS, Prisma and Clean Arch)

Running the project

After clone the repo, inside of 05-nest-prisma-clean_arch and with node v18.10 run:

  • to install dependencies: npm install
  • setup .env file like example
  • to run postgreSQL and Redis: docker compose up -d
  • to run: npm run dev
  • to build: npm run build
  • to unit tests: npm run test or npm run test:watch
  • to e2e tests:
    • npm run test:create-prisma-environment
    • npm run test:install-prisma-environment
    • npm run test:e2e or npm run test:e2e:watch

The available endpoints are in: src/client.http

node-basics's People

Contributors

jacksonfa avatar

Watchers

 avatar

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.