Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Wellers0n/Backend-diff
graphql vs rest
https://github.com/Wellers0n/Backend-diff
backend graphql rest rest-api
Last synced: 2 days ago
JSON representation
graphql vs rest
- Host: GitHub
- URL: https://github.com/Wellers0n/Backend-diff
- Owner: Wellers0n
- License: mit
- Created: 2019-07-26T04:45:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T04:42:36.000Z (over 1 year ago)
- Last Synced: 2024-08-01T22:01:13.110Z (3 months ago)
- Topics: backend, graphql, rest, rest-api
- Language: TypeScript
- Size: 631 KB
- Stars: 25
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Backend-diff
## Backend-diff JS and TS
Backend-diff uses a stack full `JS/TS` on the backend, I'm making this project to improve
my skills in the backend.
## Initing in the your PC- For clone the project `git clone https://github.com/Wellers0n/Backend-diff.git`
- Enter in the folder `cd Backend-diff/`
- To install project dependency: `yarn install`
- After the installation of the dependencies `yarn start` in the default directory## Routes
#### Login and create user
- `POST` => `/api/login` return -> `TOKEN`
- `POST` => `/api/createUser` return -> `status 200`#### Articles
- `GET` => `/api/articles` return -> `json articles`
- `GET` => `/api/article/:id` return -> `json one article`
- `POST` => `/api/article` return -> `status 200 = create one article`
- `DELETE` => `/api/article/:id` return -> `status 200 = delete one article`
- `PUT` => `/api/article/:id` return -> `status 200 = update one article`#### Comments
- `GET` => `/api/comment/:idArticle` return -> `json comments of an article`
- `POST` => `/api/comment` return -> `status 200 = create one comments`
- `DELETE` => `/api/comment/:id` return -> `status 200 = delete one article`
- `PUT` => `/api/comment` return -> `status 200 = update one article`## Stack used
[NodeJS](https://nodejs.org/en/)
[KoaJS](https://koajs.com/)
[MongoDB](https://www.mongodb.com/)
[GraphQL](https://graphql.org/)
[Yarn](https://yarnpkg.com/en/)
[WorkSpaces](https://yarnpkg.com/lang/en/docs/workspaces/)## Profile
@nandosangenetto