Skip to content

alkemyTech/OT266-server

Repository files navigation

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

Members

Members per page

In this endpoint you are gonna find all the members of the organization, these members are listed per pages

  • Set the page you wanna see

EJEMPLO

  • If the page that you set doesn't have content to show, it is gonna display this

EJEMPLO

Attributes of the members

  • To display some members' attributes, such as name and image, log in as an administrator (the data of the administrators will be provided only by the developers).

EJEMPLO

To create a new member inside the database

You only need to complete every field in the next schema to create in a successfully way a new member.

EJEMPLO

  • nameMember is the name of the member
  • facebookUrl is the url address of the facebook page of the member
  • instagramUrl is the url address of the instagram page of the member
  • linkedinUrl is the url address of the linkedin page of the member
  • image is gonna be the image that the member will show to the world
  • description is about the rol of the member inside the organization

To update a member's information inside the database

You only need to complete every field in the next schema to update the information of a member

EJEMPLO

  • id is gonna be the identification of the member you wanna update
  • nameMember is the name of the member
  • facebookUrl is the url address of the facebook page of the member
  • instagramUrl is the url address of the instagram page of the member
  • linkedinUrl is the url address of the linkedin page of the member
  • image is gonna be the image that the member will show to the world
  • description is about the rol of the member inside the organization

To delete a member's information from the database

  • To delete a member you need to write its id, the id is the identification of the member you wanna delete

EJEMPLO

About

ONG-js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9

Languages