Skip to content

Commit

Permalink
Merge pull request #38 from SarahAbuirmeileh/ses
Browse files Browse the repository at this point in the history
Ses
  • Loading branch information
TarteelTamimi authored Oct 18, 2023
2 parents 5bc7a7a + 7bd8ad3 commit f67d847
Show file tree
Hide file tree
Showing 6 changed files with 587 additions and 40 deletions.
8 changes: 8 additions & 0 deletions app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import organizationProfileRouter from "./src/routes/organizationProfile.js"
import volunteerRouter from "./src/routes/volunteer.js"
import { authenticate } from "./src/middleware/auth/authenticate.js"
import { errorHandler } from "./src/middleware/errorHandler/errorHandler.js"
import { sendEmail } from "./src/controllers/sendEmail.js"

const app = express();
dotenv.config();
Expand All @@ -40,6 +41,13 @@ app.use(function (req, res, next) {
});
app.use(errorHandler);

// for testing
// sendEmail(
// 'tamimitarteel@gmail.com',
// 'Tarteel',
// 'greeting!',
// 'You have registered in bla bla bla voluntary work');

app.listen(PORT, () => {
logger(`App is listening on port ${PORT}`);
console.log(`App is listening on port ${PORT} and host http://localhost:${PORT}`);
Expand Down
Loading

0 comments on commit f67d847

Please sign in to comment.