https://github.com/max-im/mediumclone-nest
https://github.com/max-im/mediumclone-nest
nestjs node postgresql typeorm
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/max-im/mediumclone-nest
- Owner: Max-im
- Created: 2022-07-27T20:01:57.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-04T16:16:51.000Z (almost 4 years ago)
- Last Synced: 2025-04-09T07:38:18.763Z (about 1 year ago)
- Topics: nestjs, node, postgresql, typeorm
- Language: TypeScript
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Medium resource clone
## implemented with the next tech features:
- nest
- node
- typeorm
- postgress
- typescript
## users
| method | url | body | description |
| ------ | ------------ | ------------------------------------------------------------------------- | --------------------- |
| POST | /users | {user: {email: string, username: string, password: string}} | create user |
| POST | /users/login | {user: {email: string, password: string}} | login user |
| GET\* | /user | | get current user data |
| PUT\* | /user | {user: {email?: string, username?: string, bio?: string, image?: string}} | get current user data |
\* requires Authorisation Header 'Token '
## tags
## articles
| method | url | body | description |
| -------- | -------------------------- | ------------------------------------------------------------------------------------- | ---------------------- |
| GET | /articles | | get articles |
| POST\* | /articles | {articles: {title: string, description: string, body: string, tagList?: string[]}} | create article |
| GET | /articles/:slug | | get article by slug |
| PUT\* | /articles/:slug | {articles: {title?: string, description?: string, body?: string, tagList?: string[]}} | update article |
| DELETE\* | /articles/:slug | | delete article by slug |
| POST\* | /articles/:slug/favorite | | like article |
| DELETE\* | /articles/:slug/unfavorite | | unlike article |