Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
# mini-wp
# mini-wp

A simple blogging web-app made with vue

# Server API Routes


### Authentication Routes

| Route | HTTP | Header | Body| Description |
| ------------- |:-------------:|-----------| ------------| :------------------- |
| /register | POST |none | email:string, password:string | Create user and generate token |
| /login| POST | none | email:string, pasword: string | authenticate registered user and generate token |
| /googleauth| POST | none | pasword: string | authenticate registered user and generate token |

### User CRUD Routes

| Route | HTTP | Header | Body| Description |
| ------------- |:-------------:|-----------| ------------| :------------------- |
| /users | GET |token | none |Get all user info (admin only) |
| /users/:id| GET | token | none | Get a user's info (admin and authenticated user only) |
| /users | POST |token | email:string, password:string |Create a user (admin only) |
| /users/:id | PUT |token | email:string, password:string, role:string |Update a user's attributes (admin only) |
| /users/:id | DELETE |token | none |delete a user (admin and authenticated user only) |

### Article CRUD Routes
| Route | HTTP | Header | Body| Description |
| ------------- |:-------------:|-----------| ------------| :------------------- |
| /articles | GET |token | none |Get all user info (admin only) |
| /articles/:id| GET | token | none | Get a user's info (admin and authenticated user only) |
| /articles | POST |token | email:string, password:string |Create a user (admin only) |
| /articles/:id | PUT |token | email:string, password:string, role:string |Update a user's attributes (admin only) |
| /articles/:id | DELETE |token | none |delete a user (admin and authenticated user only) |
27 changes: 27 additions & 0 deletions client/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
html, body{
font-family: 'Nunito', sans-serif;
background-color: #f8f9fa;
}

.nav .nav-link {
background-color: white;
color: black;
}

.nav .nav-link:hover:not(.active) {
background-color: rgb(238, 238, 238);
}

.nav .nav-link:hover i {
color: rgb(3, 3, 3);
}

.nav-pills .nav-link.active {
background-color: rgb(122, 194, 199)
}

/* .card:hover{
transition: all .2s ease-in-out;
transform: scale(1.1, 1.1);
} */

Loading