Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stanleymasinde/express-blog
A simple blog project for personal practice
https://github.com/stanleymasinde/express-blog
authentication blog express javascript knexjs nodejs pug tailwind-css
Last synced: about 1 month ago
JSON representation
A simple blog project for personal practice
- Host: GitHub
- URL: https://github.com/stanleymasinde/express-blog
- Owner: StanleyMasinde
- License: mit
- Created: 2020-11-19T16:51:51.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-11T14:53:28.000Z (6 months ago)
- Last Synced: 2024-08-12T12:33:08.162Z (6 months ago)
- Topics: authentication, blog, express, javascript, knexjs, nodejs, pug, tailwind-css
- Language: JavaScript
- Homepage: https://stanleymasinde.github.io/express-blog/
- Size: 586 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# express-blog
![Node.js CI](https://github.com/StanleyMasinde/express-blog/workflows/Node.js%20CI/badge.svg)
![CodeQL](https://github.com/StanleyMasinde/express-blog/workflows/CodeQL/badge.svg)
> A simple blog project for personal practice## Installation
1. clone this repo
2. `cd express-blog && npm i`
3. `npm start`## Routes
### Authentication
|Path |Method| params |
|:---------------|:-----|:--------------------|
|`/auth/login` | POST |`email,password` |
|`/auth/register`| POST |`name,email,password`|
|`/auth/logout` | POST | None |### Blogs
|Path|Method|params|
|:-----------|:-------|:--------------------|
|`/posts` | GET | None |
|`/posts` | POST |`title,body, date` |
|`/posts/:id`| GET | None |
|`/posts/:id`| PUT |`title,body, date` |
|`/posts/:id`| DELETE | None |## Testing
Run `npm run test` or `yarn test` to run tests