Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abbasfisal/laravel-story-web-application

Simple Story Laravel Web Application With Api
https://github.com/abbasfisal/laravel-story-web-application

api api-resource laravel laravel-9 mysql rest-api restful-api

Last synced: 4 days ago
JSON representation

Simple Story Laravel Web Application With Api

Awesome Lists containing this project

README

        

# Simple Story Laravel Web Application API

> THis project built with laravel `v.9`

> without any front end

[Here](https://github.com/abbasfisal/Laravel-Story-Web-Application/blob/main/Story.postman_collection_V1.json) You Can Download This Project **postMan** Collection
## Database

### Users Table

|#|Title|Description|
|---|---|---|
|1|name||
|2|email|must be unique|
|3|username|must be unique|
|4|type|default user type is `user`|
|5|avatar|user profile image|
|6|password|

### Categories Table

|#|Title|Description|
|---|---|---|
|1|title|must be unique|

### Stories Table

|#|Title|Description|
|---|---|---|
|1|user_id|users table `Fk`|
|2|category_id|categories table `Fk`|
|3|title|category title|

### Story_likes Table

|#|Title|Description|
|---|---|---|
|1|user_id|users table `Fk`|
|2|story_id|stories table `Fk`|

### Comments Table

|#|Title|Description|
|---|---|---|
|1|user_id|users table `Fk`|
|2|parent_id|used for Replying System|
|3|text|user comment text|
|4|commentable_id|for store stories `fk`|
|1|commentable_type|for store Model Class Name for example => `App\Models|Story`|

### Followers Table

|#|Title|Description|
|---|---|---|
|1|follower_id|(followers) users table `Fk`|
|1|following_id|(following) users table `Fk`|


## Login / Register :key:

> In This Project Used `Sanctum` Package

- Register Requirements
1. email :email:
2. password :old_key:
3. avatar :blond_haired_man:

## User Types :male_detective:

1. Admin (Administrator)
2. User (Normal user)

> After Seeding Database There will be 2 users type and Categories Dummy Data

|#|email|password|type
|---|---|---|---|
|1|[email protected]|123456|admin
|2|[email protected]|123456|user

## Admin :man_technologist:

- Abilities
1. Create categories
2. See users
3. See users with thier Stories
4. See Single User Story With its Comments

## User :raising_hand_man:

- user abilities
1. Create Stories
2. Send Comment to a Story
3. Reply To a Comment
4. Follow Users
5. See Follower List
6. See Following List
7. Like a Story
8. See All Liked Stories

5. Seeing own Stories

## Home Page :derelict_house:

- Home Abilities
1. See `10` Latest Users Stories
2. Show Number Of Comments for Each Story
3. Show Single Story With its Comments
4. See a User Stories List
5. Get Stories By Category

## Todo

- [ ] Must Implement Edit Section
- [ ] Must Implement Delete Section