Skip to content

Commit

Permalink
📨 feat: implemented user invite with sendgrid (#3)
Browse files Browse the repository at this point in the history
* feat: implemented user invite with sendgrid
  • Loading branch information
Lyton505 authored Nov 11, 2024
1 parent 2b91e9d commit 98da4e5
Show file tree
Hide file tree
Showing 6 changed files with 259 additions and 14 deletions.
16 changes: 16 additions & 0 deletions api/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## copy this file and rename it to .env. Fill in the values from Notion

# server
PORT=8000

# email service
SEND_GRID_API_KEY=##check notion##
SEND_GRID_TEST_EMAIL=##check notion##

# database
MONGO_URI=##check notion##

# backend auth
CLIENT_ORIGIN_URL=http://localhost:4040
AUTH0_AUDIENCE=##check notion##
AUTH0_DOMAIN=##check notion##
Binary file added api/assets/pww-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
212 changes: 203 additions & 9 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "api",
"version": "1.0.0",
"description": "",
"main": "src/index.ts",
"main": "src/server.ts",
"scripts": {
"build": "tsc",
"start": "node src/index.ts",
"start": "nodemon ./dist/server.js",
"dev": "nodemon ./src/server.ts",
"test": "echo \"Error: no test specified\" && exit 1",
"prettier": "prettier --single-quote --write 'src/**/*.{js,ts}'",
Expand All @@ -15,6 +15,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@sendgrid/mail": "^8.1.4",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.21.0",
Expand All @@ -26,7 +27,7 @@
"devDependencies": {
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/node": "^22.5.4",
"@types/node": "^22.8.1",
"@types/uuid": "^10.0.0",
"body-parser": "^1.20.3",
"prettier": "^3.3.3",
Expand Down
Loading

0 comments on commit 98da4e5

Please sign in to comment.