Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ name: Node.js CI/CD
on:
push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
build:
Expand Down
6 changes: 3 additions & 3 deletions helpers/auth.helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ const authHelpers = {
}
// #send mail to user entered email
const mailResponse = await mailSender({
fromEmail: '"Shopping Bazaar" <bijintestacc@gmail.com>',
fromEmail: '"ECommerce" <bijintestacc@gmail.com>',
toEmail: email,
title: 'Shopping Bazaar - Sign up OTP',
title: 'ECommerce - Sign up OTP',
htmlBody: `
<div
class="container"
style="max-width: 90%; margin: auto; padding-top: 20px"
>
<h2 style="text-align: center;">Welcome to Shopping Bazaar</h2>
<h2 style="text-align: center;">Welcome to ECommerce</h2>
<p style="margin-bottom: 30px; text-align: center;">Pleas enter the sign up OTP to get started</p>
<h1 style="font-size: 40px; letter-spacing: 2px; text-align: center;">${insertedOtp.otp}</h1>
</div>
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shopping-bazaar_backend",
"version": "1.0.1",
"name": "ecommerce-api",
"version": "1.0.2",
"main": "dist/index.js",
"private": true,
"scripts": {
Expand Down
5 changes: 1 addition & 4 deletions routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ const router = Router();

// #welcome route
router.get('/', (request, response) => {
response.send(`
Welcome to API service of "Shopping Bazaar" e-commerce web application.
To visit the application click <a href="${process.env.CORS_ORIGIN_URL}">${process.env.CORS_ORIGIN_URL?.replace(/^https?:\/\//, '')}</a>.
`);
response.send('Welcome to e-commerce api service.');
});

// #other routes
Expand Down