Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sagarchaurasia176/core-backend-stuff
How authentication , server, cloud media , mail work in the backend everything are in this backend stuff project !
https://github.com/sagarchaurasia176/core-backend-stuff
express mongodb node postman
Last synced: 1 day ago
JSON representation
How authentication , server, cloud media , mail work in the backend everything are in this backend stuff project !
- Host: GitHub
- URL: https://github.com/sagarchaurasia176/core-backend-stuff
- Owner: sagarchaurasia176
- Created: 2024-07-27T11:08:14.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-18T11:56:19.000Z (5 months ago)
- Last Synced: 2024-11-23T00:18:39.277Z (2 months ago)
- Topics: express, mongodb, node, postman
- Language: JavaScript
- Homepage:
- Size: 4.5 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Backend-stuff
This is the Backend Project where you can see how the
- How Login/signup authentication works
- JWT works,
- How Middleware works
- How media files are directly transferred to the cloud
- How can you send the mail to anyone?## Tech Stack
**server:** Node Js, Express Js,
**others package** Cloudinary, Nodemailer,
**DataBase** MongoDB
## Installation
install all the packages
```bash
npm i express , nodemon , mongoose , cloudinary,cookie-parser,dotenv,bcrypt ,express-fileupload,file-upload , jsonwebtoken,nodemailer
```change directory first then move to Backend Folder and then type
```bash
npm run dev
```## Screenshots
## Cloud media server
![Screenshot 2024-08-14 120148](https://github.com/user-attachments/assets/33bc942b-aac3-4c2b-934e-799afe0c697b)
![Screenshot 2024-08-14 112337](https://github.com/user-attachments/assets/5d8e658f-e1b9-4a1a-b85a-29ee63c5eb2e)## API Reference
- Open this link, and you are good to use make sure your server works well otherwise it gives you the error
- your mongod db IP is activated
- https://documenter.getpostman.com/view/33753637/2sA3s6EpXr
## Environment VariablesTo run this project, you will need to add the following environment variables to your .env file
```bash
# .env.fole
PORT = 4000
DB_URL =
SECRET_TOKEN =#Cloudinary-APi apply here
Cloudinary_Api =
Cloudinary_Secret =
Cloudinary_Name =# //Node mailer setup here
MAIL_HOST = smtp.gmail.com
MAIL_USER =
MAIL_PASS =#How to generate the mail password -
-----------------------------------------
- open your Google account
- click to manage the account
- check-in left side there is one menu called security
- open it
- Click on two-factor authentication once it is done
- Then type the app generated in the search bar
- once it is done your password is generated copy it
- paste it into MAIL_PASS```