Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tasbeehismail/social-media-platform
A simple backend application to manage users, posts, and comments.
https://github.com/tasbeehismail/social-media-platform
bcryptjs database deployment express javascript mysql nodejs orm sequelize
Last synced: 18 days ago
JSON representation
A simple backend application to manage users, posts, and comments.
- Host: GitHub
- URL: https://github.com/tasbeehismail/social-media-platform
- Owner: tasbeehismail
- Created: 2024-06-07T23:36:49.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-09T11:54:47.000Z (7 months ago)
- Last Synced: 2024-06-10T00:42:25.388Z (7 months ago)
- Topics: bcryptjs, database, deployment, express, javascript, mysql, nodejs, orm, sequelize
- Language: JavaScript
- Homepage: https://social-media-platform-4anw.onrender.com
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Social Media Platform
## Requirments
1. Define a Sequelize model for users with the following fields: username, email, and password.
2. Define a Sequelize model for posts with the following fields: title, content, and author (linked to the User model).
3. Define a Sequelize model for comments with the following fields: content, postId (linked to the post model), and userId (linked to the User model).
4. Implement routes and controllers for user registration, login, and logout. (email must be unique)
5. Implement routes and controllers for creating, reading, updating, and deleting posts.
6. Implement routes and controllers for creating, reading, updating, and deleting comments.
7. Ensure that users can only edit or delete (soft delete) their posts.
8. Use bcrypt.js to securely hash and store user passwords.
9. Special endpoint to get a specific user with a specific post and post’s comments.
10. Get a specific post with the author.## Deployment
- Database on clever-cloud.com
- Application on Render: https://social-media-platform-4anw.onrender.com## Documentation
### [Postman APIs](https://documenter.getpostman.com/view/34627138/2sA3XJmkVc#9a80206f-430e-49df-8ed3-ea4e8f965196)## Schema
![ERD](https://github.com/tasbeehismail/social-media-platform/blob/main/diagrams/schema.png)