GithubHelp home page GithubHelp logo

nlw-expert-node's Introduction

Description

API to serve a Polling app. In this project an user can create polls, other users can reply to them and the result can be accessed in real-time.

Concepts used in this project

  • REST API
  • Docker
  • PostgreSQL
  • Redis
  • Fastify
  • Prisma
  • Cookies
  • Radis
  • Websockets
  • Pub/Sub

Libraries and commands used in this project:

Init a node project npm init -y

Typescript to allow data typing in JS: npm install typescript @types/node -D npx tsc --init

Install tsx as a dev dependency: npm install tsx -D npm run dev

Library to create node API: npm i fastify npm i @fastify/cookie npm i @fastify/websocket

ORM to manipulate the data with ease: npm i prisma -D npx prisma init npx prisma studio

Validate data in requisitions: npm i zod

Redis cahce database that runs in principal memory: npm i ioredis

To run this project:

Run docker to create DB containers ```sudo docker compose up -d``

Update to the last DB migration (version) containers npx prisma init

Run whenver the database model changes npx prisma migrate dev

Start the server npm run dev

nlw-expert-node's People

Contributors

georgehgfonseca avatar

Watchers

 avatar  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.