https://github.com/Wellers0n/Backend-diff
  
  
    graphql vs rest 
    https://github.com/Wellers0n/Backend-diff
  
backend graphql rest rest-api
        Last synced: 7 months 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 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T04:42:36.000Z (over 2 years ago)
- Last Synced: 2024-08-01T22:01:13.110Z (about 1 year 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