cougarcs / cougarcs-backend Goto Github PK
View Code? Open in Web Editor NEWAn Express API to service the CougarCS website.
An Express API to service the CougarCS website.
In the payment.js file add a api call to sendgrid that will automate this step
We would like to automatically add registered members into our SendGrid newsletter so that the newsletter ledger does not need to be manually updated.
This feature logic will likely fit in the payment.js file after payment has been successfully processed and the member is added to our database.
Google Calendar Events List API used by CougarCS-Backend
https://developers.google.com/calendar/api/v3/reference/events/list
This fetches every single event, sorted by last updated.
When this was implemented, there was no consideration for pagination and now we pay the price of this tech debt.
However, recently we reached the limit on how much data we can fetch. This will impact any events shown in October and future.
Refer to fix #295
Let me know if you need more information!
At the moment, if a student attempts to enroll for a semester of CougarCS Membership on the last few days of an academic term, their membership will start and end on that same semester. We should add a catch space, say, 15 days, that if a student tries to enroll within 15 days of the end of the semester, their start term is still that semester, but the end term is extended to the following semester.
Spring Semester End = May 13
Fall Semester End = Dec 16
Catch Space = 15 days
Here are some cases:
Pays for "semester" on January 1, 2000
--> Membership Start = Spring 2000
--> Membership End = Spring 2000
Pays for "year" on March 1, 2000
--> Membership Start = Spring 2000
--> Membership End = Fall 2000
Pays for "semester" on May 5, 2000
--> Membership Start = Spring 2000
--> Membership End = Fall 2000
Student paid within catch space of end of Spring Semester. The end date rolled over to next semester.
Pays for "year" on May 5, 2000
--> Membership Start = Spring 2000
--> Membership End = Spring 2001
Student paid within catch space of end of Spring Semester. The end date rolled over to next semester.
Pays for "semester" on August 1, 2000
--> Membership Start = Fall 2000
--> Membership End = Fall 2000
Pays for "semester" on November 1, 2000
--> Membership Start = Fall 2000
--> Membership End = Fall 2000
Pays for "semester" on Dec 5, 2000
--> Membership Start = Fall 2000
--> Membership End = Spring 2001
Student paid within catch space of end of Fall Semester. The end date rolled over to next semester.
Pays for "year" on Dec 5, 2000
--> Membership Start = Fall 2000
--> Membership End = Fall 2001
Student paid within catch space of end of Fall Semester. The end date rolled over to next semester.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Warning
These dependencies are deprecated:
Datasource | Name | Replacement PR? |
---|---|---|
npm | eslint-config-prettier-check |
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
actions/download-artifact
, actions/upload-artifact
)@sentry/node
, @sentry/tracing
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@babel/cli
, @babel/core
, @babel/node
, @babel/plugin-transform-runtime
, @babel/preset-env
, @babel/register
, @babel/runtime
)@types/jest
, jest
)@stryker-mutator/core
, @stryker-mutator/jest-runner
)docker-compose.dev.yml
Dockerfile
node 16-alpine3.14
Dockerfile.dev
node 16-alpine3.14
.github/workflows/codeql-analysis.yml
actions/checkout v3
github/codeql-action v2
github/codeql-action v2
github/codeql-action v2
.github/workflows/dependency-review.yml
actions/checkout v3
actions/dependency-review-action v1
.github/workflows/node.js.yml
actions/checkout v3
actions/setup-node v3
actions/checkout v3
actions/setup-node v3
actions/checkout v2
actions/setup-node v3
actions/upload-artifact v3.0.0
actions/checkout v2
actions/setup-node v3
actions/checkout v3
actions/download-artifact v3
actions/checkout v3
actions/download-artifact v3
actions/checkout v3
getsentry/action-release v1
package.json
@babel/runtime ^7.17.9
@newrelic/winston-enricher ^2.1.2
@notionhq/client ^0.4.2
@sendgrid/mail ^7.5.0
@sentry/node ^6.19.7
@sentry/tracing ^6.19.0
@supabase/supabase-js ^2.8.0
axios ^0.27.2
compression ^1.7.4
cors ^2.8.5
cross-env ^7.0.3
dotenv ^16.0.0
express ^4.18.1
express-actuator ^1.8.1
express-rate-limit ^6.4.0
express-validator ^6.12.2
helmet ^5.0.2
lodash ^4.17.21
memory-cache ^0.2.0
moment ^2.29.4
morgan ^1.10.0
morgan-json ^1.1.0
newrelic ^8.10.0
stripe ^8.217.0
uuid ^8.3.0
winston ^3.7.2
@babel/cli 7.17.10
@babel/core 7.17.10
@babel/node 7.17.10
@babel/plugin-transform-runtime 7.17.10
@babel/preset-env 7.17.10
@babel/register 7.17.7
@changesets/cli 2.26.0
@stryker-mutator/core ^5.6.1
@stryker-mutator/jest-runner ^5.6.1
@types/jest 27.4.1
eslint 8.14.0
eslint-config-airbnb-base 15.0.0
eslint-config-prettier 8.5.0
eslint-config-prettier-check 1.0.0
eslint-plugin-import 2.26.0
eslint-plugin-jest 26.1.5
eslint-plugin-prettier 4.0.0
jest 27.5.1
nodemon 2.0.15
prettier 2.6.2
supertest 6.2.4
Add an endpoint in the API that take in a POST request with following fields:
Validate this input using express-validator
Send this information to sendgrid mailing list using Sendgrid API, link to sendgrid documentation (https://docs.sendgrid.com/api-reference/contacts-api-lists/add-a-single-recipient-to-a-list)
Notes:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.