https://github.com/aakashgaurab/level-supermind
A blog application
https://github.com/aakashgaurab/level-supermind
bcrypt ec2-instance expressjs jsonwebtoken mysql nodejs rds-database reactjs
Last synced: about 2 months ago
JSON representation
A blog application
- Host: GitHub
- URL: https://github.com/aakashgaurab/level-supermind
- Owner: AakashGaurab
- Created: 2023-08-04T09:09:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-12T06:16:45.000Z (over 2 years ago)
- Last Synced: 2025-05-17T20:11:24.375Z (9 months ago)
- Topics: bcrypt, ec2-instance, expressjs, jsonwebtoken, mysql, nodejs, rds-database, reactjs
- Language: JavaScript
- Homepage: http://levelsupermind.s3-website.ap-south-1.amazonaws.com/
- Size: 699 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blogify
- Bogify is blogging app which help people to post their blogs online and other people can read those blogs and can comment on these blogs.
# Tech-Stacks:
- Node.js
- Express.js
- MySQL
- React.js
- GitHub
- Postman
- AWS EC2 Instance link
[http://level-supermind-431007708.ap-south-1.elb.amazonaws.com:3500/](http://level-supermind-431007708.ap-south-1.elb.amazonaws.com:3500/)
- Deployed Link :
- [http://levelsupermind.s3-website.ap-south-1.amazonaws.com/]([http://65.0.106.33:3000/](http://levelsupermind.s3-website.ap-south-1.amazonaws.com/))
# blogifybackend repo link
[https://github.com/AakashGaurab/level-supermind](https://github.com/AakashGaurab/level-supermind)
#Entities
User
- userId(Primary key)
- name
- email(unique)
- password(hashed)
# Post
- id(primary key)
- userId(foreign key)
- title
- content
# Comments
- id(primary key)
- userid(foreign key)
- blogid(foreign key)
- comment
# Routes
User Routes
Registration
POST /user/signup
```
{
"name":"Aakash",
"email":"aakash@gmail.com",
"password":"1234"
}
```
Response: User Created
Login
POST /user/login
```
Request:{
"email":example@gmail.com,
"password":"example123"
}
```
Response:{
{msg:"Login Succesfull",id:results[0].id}
Posts Routes
# Create a post
POST /blogs/:userId
# Get All posts
GET /blogs
Edit Post
PATCH /blog/:id
Delete post
DELETE /blog/:id
# Comments Route
- Create comment
POST /comment/:userId/:blogId
Request:{
"comment":"have a momment"
}
Response: "Comment added"
Get All comments by Post
GET comment/:blogid