Giter Site home page Giter Site logo

volunseer's Introduction

Volunseer

An application designed to motivate people to volunteer by making it easy to find and post volunteer opportunities.

volunseer's People

Contributors

nicholas-shi avatar vincent-huynh avatar

Watchers

 avatar

volunseer's Issues

Error Message Popups

Upon receiving 400 error response from API, we need something to print the msg, returned in the form:

Object {
  "errors": Array [
    Object {
      "location": "body",
      "msg": "Please include a valid email.",
      "param": "email",
      "value": "",
    },
  ],
}

We want to extract the "msg" field and show this in the frontend. Preferably a popup that deletes itself shortly.

Have info on pin

Consider setting the key for the marker as the key for the event pulled from "near" query.

Setup Registration and Login on RN

General authentication flow looks like this:

  1. (Register) POST request to /api/users with: name, email, password, isVolunteer
  2. (Login) POST request to /api/auth with: email, password
  3. To make request to a protected endpoint, attach a header:

key: "x-auth-token"
value: [JWT from Register/Login call]

  1. That's it.

Consider placing the token in RN global variables or something.

Profile Editing

We need a way to edit the profile for the user. Frontend supports this, we just need to

  • Add profile model for users in db
  • Add API endpoints to edit profile
  • Connect frontend to new API endpoints

Rewards Page

  • Modify rewards page to properly pull & populate rewards, found at /api/rewards/all
  • Manually add a bunch of rewards to the database. Use the admin API call (POST) /api/rewards

Organization Create Event

Organizations need to create events. We need a way to find addresses on the map.

Suggested method:

  • Input field to search addresses, use geolocation to store event

RSVP Feature

Have an RSVP feature enabled for signing up to a volunteer event

Personal Activity

  • Probably need to add Personal Activity for the API, database model
  • Connect the frontend to this
  • [ ]

Query all events within X radius of user

We need to have a way to query events within X radius of the user. According to this, we need to do the following:

  • Change the Event model to have GeoJSON
  • Index the path to the points using 2dsphere
  • Query the points in the documents using $geoWithin and $centerSphere.

Look at the Stack Overflow for examples of how to do this.

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.