Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix case schema #24

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open

Fix case schema #24

wants to merge 30 commits into from

Conversation

georgeben
Copy link
Owner

Allows a case to be reported without providing the age, residential address or language

* Facebook Log in (#1)

* feature:add google sign in

* feature:add facebook sign in

* feature:add twitter sign in (#2)

* Add local authentication (#3)

* feature:add signup with email

* feature:add login with email

* return jwt token on signin

* Create cases endpoints (#4)

* create-user-slug

* create route to retreive user details

* create route for updating user profile

* send confirm email on signup

* implement resend verification email

* refactor auth response

* implement route for reporting a case

* implement route for retrieving all reported cases

* implement route for retrieving a single reported case

* implement update case route

* add request validation to auth routes

* check for undefined values before updating user profile

* add validation to update profile route

* add validation to fetch signle case route

* add validation to create case route

* add validation to update case route

* Image upload (#5)

* upload user photo to cloudinary during profile update

* upload case photo to cloudinary when creating case

* upload case photo during case update

* Fix submit case (#6)

* Add/Update algolia index when a case is created/updated

* Automatically generate case description on save

* Setup endpoints for newsletter

* Send confirmation email with a worker thread

* send data to algolia using background jobs

* Impement daily newsletter cron job

* Impement weekly newsletter cron job

* create location schema

* create update email route

* computed profileComplete in pre-save hook in the user schema

* Fix 404 bug when verifying email

* fix issues with uploading case from client

* add route to fetch cases reported  by a user

* Ft browse cases (#7)

* add route to fetch cases reported  by a user

* implement pagination when fetching cases

* update schema for update case

* fix: update case slug when updating algolia index

* Reset password (#8)

* add route to fetch cases reported  by a user

* fix: update case slug when updating algolia index

* create twitter bot

* implement reset password

* implement update password

* fix bug when updating emails

* fix newsletter subscription issue

* validate captcha when creating/updating case

* Send Newsletter (#9)

* customize user's case feed according to user's location

* implement newsletter with real locations

* Create twitter bot (#10)

* create twitter bot

* implement twitter bot

* fix: convert gender to lowercase in description

* implement update case status

* Ft social auth (#11)

* fix google sign in

* fix facebook signin

* fix twitter signin

* implement view related cases

* implement contact us message

* handle server errors😬

* redesign email templates (still ugly)

* add deployment config

* limit app instances to 1 in pm2 config

* fix redis issue

* fix: change redis url

* redis issue

* fix redis client connection

* fix redis client bug

* add redis url to bull queues

* fix stuff lol

* change node instances to 2

* reduce worker instance to 1

* reduce server instance to 1

* increase max file size to 2mb

* debugging cases controller

* add twitter callback url when fetching req token

* create stats route

* add new relic

* process tweet case first

* fix front end url in staging

* disconnect from redis on shutdown

* why is this not working?

* remove space from newsletter collection name

* remove twitter bot to a separate app

* reduce redis client connections to 5

* change web instance to 2

* add twitter bot

* testing cron

* cron working

* separate twitter job to a separate queue

* use different cloudinary urls

* reduce min characters for contact us message to 20 characters
* fix: update email sender in confirmation email

* reduce web server instances to 1 to fix memory problem
* fix: update email sender in confirmation email

* reduce web server instances to 1 to fix memory problem

* report error to sentry in error handler
* fix: update email sender in confirmation email

* reduce web server instances to 1 to fix memory problem

* report error to sentry in error handler

* fix: correct reset password email header

* fix: handle malformed token errors in oauth sign in
* chore: write case endpoint test

* chore: write authHelper test

* chore: write newsletter test

* chore: write test for stats endpoint

* chore: write test for auth endpoint

* refactor auth and case tests

* chore: write test for users endpoint

* chore: set up travis

* redis servis to .travis.yml

* chore: set up coveralls

* chore: add .coveralls.yml
* send emails in development
* fix: update email sender in confirmation email

* reduce web server instances to 1 to fix memory problem

* report error to sentry in error handler

* fix: correct reset password email header

* fix: handle malformed token errors in oauth sign in

* chore:add tests (#16)

* chore: write case endpoint test

* chore: write authHelper test

* chore: write newsletter test

* chore: write test for stats endpoint

* chore: write test for auth endpoint

* refactor auth and case tests

* chore: write test for users endpoint

* chore: set up travis

* redis servis to .travis.yml

* chore: set up coveralls

* chore: add .coveralls.yml

* fix: send emails in development (#17)

* send emails in development
* chore: improve comments

* Create README.md

* add .env.sample file

* Create CONTRIBUTING.md

* Update README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant