Skip to content

Commit

Permalink
🤌 add full example use of the template, otp mail & blob service from …
Browse files Browse the repository at this point in the history
…vercel
  • Loading branch information
Pape Mayel Diagne THIAM authored and Pape Mayel Diagne THIAM committed Jul 23, 2024
1 parent e76d6f1 commit d872189
Show file tree
Hide file tree
Showing 37 changed files with 2,435 additions and 134 deletions.
21 changes: 21 additions & 0 deletions env/.env → .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@ NODE_ENV=template
PORT=3000
API_URL=http://localhost:3000

ACCESS_SECRET_TOKEN=''
REFRESH_SECRET_TOKEN=''

# BOT MAIL FOR SENDING OTP
BOT_MAIL_ADDRESS=''
BOT_EMAIL_PASSWORD=''


# TO BE REPLACED BY YOUR TWILIO API KEY AND ACCOUNT SID AND AUTH TOKEN
TEXT_FLOW_API_KEY=''
TWILIO_ACCOUNT_SID=''
TWILIO_SERVICE_SID=''
TWILIO_AUTH_TOKEN=''

# PAYTECH API KEY & API SECRET
PAYTECH_API_KEY=''
PAYTECH_API_SECRET=''

# Vercel Blob
BLOB_READ_WRITE_TOKEN=''


# This was inserted by `prisma init`:
# Environment variables declared in this file are automatically made available to Prisma.
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ public
#db persistance
pg_db
#coverage test
coverage
coverage
#ignore
.env.dev
.env.prod
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ This is an opinionated boilerplate (template or skeleton, whatever you want) for
git clone https://github.com/mayel15/node-express-template
```

- 👽 Create an `environment files` at the root of the project and name them `.env.dev` for `dev environment` and `.env.prod` for `prod environment`. And after that, in those files add the `environment variables` you need by inspiring you in the `environment template file` named `.env`

- 🚀 Run the server app with `Docker`

```sh
Expand Down
12 changes: 0 additions & 12 deletions env/.env.dev

This file was deleted.

12 changes: 0 additions & 12 deletions env/.env.prod

This file was deleted.

Loading

0 comments on commit d872189

Please sign in to comment.