ONG-Node

Overview

Server Base - Proyecto ONG

Envinroment setup

  1. Create database
  2. Copy .env.example to .env and fill with database credentials.

To install dependencies, run

npm install
  1. Migrations:
npx sequelize-cli db:migrate
  1. Seeders:
npx sequelize-cli db:seed:all

Start local server

npm start

Run development mode

npm run dev
Comments
  • Ot175 81 create comment

    Ot175 81 create comment

    Para crear un post se debe ser usuario (Standard o Admin) y tener un token. NO solo es necesario para la autenticación sino que tambíen se saca de los headers el Id de usuario asociado al comentario. El comentario esta validado para que se pase un string en el body y un número en el postId. El post Id debe ser el de un post existente sino tira error

    opened by AlRazeto 2
  • Ot175 19 news hotfix

    Ot175 19 news hotfix

    • hice un merge con el PR #36 de estefany para no generar conficltos
    • categrory esta bien relacionada y no puede ser null
    • si se manda un categoryId que no apunta aninguna categoria tira error
    opened by AlRazeto 2
  • fixed of associations with the comments table

    fixed of associations with the comments table

    Cuando se realiza la petición donde obtengo todos los comentarios, este llama a un commentId que no encuentra. este commentId era usado en estas 2 tablas.

    Eliminando estas asociaciones, la tabla Comments, sigue teniendo relación con User y Post

    opened by Estdiag 1
  • Ot175 69 endpoint creación testimonios

    Ot175 69 endpoint creación testimonios

    No enviroment changes needed to work.

    Solved a little bug in middlewares/adminAuthentication.js

    This set of routes and controllers were already made in a basic/schematic way, I just added validations and converted instanced mode in static class methods, trying to make as less modifications as possible in original code.

    opened by vgrusz 1
  • Ot175 42 endpoint detalle categoria

    Ot175 42 endpoint detalle categoria

    Se agrego el endpoint tipo GET para obtener una sola categoria mostrando sus detalles y en el caso de que no exista, se devolverá un error con un código de estado 404

    opened by GonzaaMZ 1
  • Ot175 28 send email

    Ot175 28 send email

    clase para enviar email, recibe los siguientes argumentos: correo del destinatario, asunto del correo, html del cuerpo del mensaje

    para su funcionamiento crear un archivo .env con las siguientes variables: SENDGRID_API_KEY FROM_EMAIL

    opened by Estdiag 1
  • class for send emails

    class for send emails

    clase para enviar email, recibe los siguientes argumentos: correo del destinatario, asunto del correo, titulo del mensaje, texto que contiene el mensaje, informacion que va a contener el mensaje, nombre del archivo de la vista el cual debe estar en la carpeta "views"

    para su funcionamiento crear un archivo .env con las siguientes variables: SENDGRID_API_KEY=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 [email protected]

    en caso de no haber creado una vista puedes usar "emailWelcome.ejs" , se verá como la imagen a continuación:

    image

    opened by Estdiag 1
  • Ot175 101 test auth

    Ot175 101 test auth

    perdón por el pr largo

    • saqué el middleware de jwtCreation porque ya terminamos con el proyecto y solo lo usaba un endpoint de auth (register), asi que me pareció lo mejor
    • auth.register ahora tiene la validacion de los campos en el endpoint, al igual que el resto de los endpoints validados del proyecto.
    • habia bastantes problemas en el error handeling y en el encadenamiento de funciones (cosas que se llamaban aún cuando la funcion fue rechazada).
    • por el lado del testing funciona todo y estmos ya en 80%

    PD: me olvide de sacar esta rama desde development así que tiene un par de cambios en users.test.js, ignorarlos en este PR

    opened by AlRazeto 0
  • fix de swagger config

    fix de swagger config

    -cambié la config para que puedan escribir en el archivo swagger.yaml -para documentar simplemente usen la sintaxis correcta y eviten la parte de la config inicial; pasen directamente a los paths o schemas

    opened by AlRazeto 0
Releases(v1.4.0)
Owner
Alkemy
Alkemy
Server Base - Proyecto ONG

Server Base - Proyecto ONG Envinroment setup Create database Copy .env.example to .env and fill with database credentials. To install dependencies, ru

Alkemy 4 May 3, 2022
Server Base - Proyecto ONG

Server Base - Proyecto ONG Envinroment setup Create database Copy .env.example to .env and fill with database credentials. To install dependencies, ru

Alkemy 6 Jun 18, 2022
e-ONG, an authorial project, whose objective is to help ONGs to find people who need help or would like to help them

This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: npm start Runs the app in the developmen

Lucas Lima 2 Nov 11, 2022
Node 18's node:test, as a node module

node-core-test This is a user-land port of node:test, the experimental test runner introduced in Node.js 18. This module makes it available in Node.js

Julian Gruber 62 Dec 15, 2022
Node-cli-starter - Basic starter kit for building Node CLI applications with TypeScript.

node-cli-starter Minimal starter kit for building Node CLI applications with TypeScript. Getting Started To get started clone repo locally and run npm

Cory Rylan 7 May 17, 2022
Apilytics for Node.js - Easy API analytics for Node backends

apilytics-node Apilytics is a service that lets you analyze operational, performance and security metrics from your APIs without infrastructure-level

Apilytics 9 Sep 2, 2022
This is a vanilla Node.js rest API created to show that it is possible to create a rest API using only vanilla Node.js

This is a vanilla Node.js rest API created to show that it is possible to create a rest API using only vanilla Node.js. But in most cases, I would recommend you to use something like Express in a production project for productivity purposes.

Eduardo Dantas 7 Jul 19, 2022
Inter Process Communication Module for node supporting Unix sockets, TCP, TLS, and UDP. Giving lightning speed on Linux, Mac, and Windows. Neural Networking in Node.JS

Inter Process Communication Module for node supporting Unix sockets, TCP, TLS, and UDP. Giving lightning speed on Linux, Mac, and Windows. Neural Networking in Node.JS

Node IPC 43 Dec 9, 2022
Node js package makes creating node jd dependincies files like Controllers,Entities and Repositories easier by executing a few instructions

Nodejs Studio Node js package makes creating node js project dependincies files like Controllers,Entities and Repositories easier by executing a few i

Syrian Open Source 9 Oct 12, 2022
Spin node create spin api for node

Links Contract api JS api @spinfi/core @spinfi/node @spinfi/node Spin node create spin api for node How to install yarn add @spinfi/node How to init i

Spin 6 Oct 18, 2022
:white_check_mark: The Node.js best practices list (March 2021)

Node.js Best Practices Follow us on Twitter! @nodepractices Read in a different language: CN, BR, RU, PL, JA, EU (ES, FR, HE, KR and TR in progress! )

Yoni Goldberg 85k Jan 9, 2023
A new Node.js resource built using Gatsby.js with React.js, TypeScript, and Remark.

Nodejs.dev Nodejs.dev site built using Gatsby.js with React.js, TypeScript, SCSS, and Remark. You can find the latest Figma design protype here. ?? Ge

Node.js 2.2k Jan 5, 2023
📗 How to write cross-platform Node.js code

How to write cross-platform Node.js code. Why you should care: according to the 2018 Node.js user survey, 24% of Node.js developers use Windows locall

ehmicky 1.3k Jan 3, 2023
Mina Node Monitor

Mina Node Monitor Mina Monitor is an extended graphical version of the mina client status command with additional indicators. This is a client-server

Serhii Pimenov 56 Dec 18, 2022
A crawler that extracts data from a dynamic webpage. Written in node js.

??️ Gumo "Gumo" (蜘蛛) is Japanese for "spider". Overview ?? A web-crawler (get it?) and scraper that extracts data from a family of nested dynamic webp

Nuthalapai Venkata Krishna Chaitanya 22 Sep 13, 2022
Play bad apple in Node.js

Bad Apple Nodejs Play Bad Apple in console with Nodejs! Requirements and Installation You can either git clone or download the repository as a zip. Se

null 10 Sep 8, 2022
Implementing hexagonal architecture on AWS Lambda with Node.js

Developing evolutionary architecture with AWS Lambda Context Agility enables you to evolve a workload quickly, adding new features, or introducing new

AWS Samples 95 Dec 20, 2022
A Simple Node.js Naive Bayes Library.

Idnaive Idnaive is A Simple Node.js Naive Bayes Library. ✅ Multilanguage Stemming (Indonesia + English) ✅ Out String Filter ✅ Punctuation Filter ✅ Fix

FNC 23 Oct 13, 2022
A Node.js library to calculate Uniswap V3 ratios (prices) from token pairs.

UniV3Prices A Node.js library to calculate Uniswap V3 ratios (prices) and liquidity (reserves). Features This library will allow you to: Calculate pri

Thanos Polychronakis 121 Dec 29, 2022