Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaungmyathan22/nodejs-ec2-githubactions-cicd
Nodejs app deployment to ec2 with cicd using github actions
https://github.com/kaungmyathan22/nodejs-ec2-githubactions-cicd
cicd ec2 githubactions nodejs
Last synced: about 1 month ago
JSON representation
Nodejs app deployment to ec2 with cicd using github actions
- Host: GitHub
- URL: https://github.com/kaungmyathan22/nodejs-ec2-githubactions-cicd
- Owner: kaungmyathan22
- Created: 2023-10-03T03:39:32.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-03T04:15:21.000Z (over 1 year ago)
- Last Synced: 2024-11-07T23:42:21.434Z (3 months ago)
- Topics: cicd, ec2, githubactions, nodejs
- Language: JavaScript
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nodejs app with rest and graphql example
An example of GraphQL queries/mutations with Node and Express js.
With GraphQL, clients can specify exactly what data they need, and the server responds with only that data, reducing the amount of data transferred over the network.
Rest API Endpoint for get all users: http://localhost:5000/rest/getAllUsers
GraphQL Endpont: http://localhost:5000/graphql
Query for below scenarios:
1. Get All Users with query operation
query{
getAllUsers{
id
}
}2. Get single user details
query{
findUserById(id:1000){
id
firstName
lastName
}
}3. Create User with mutation operation
mutation{
createUser(firstName:"sachin",lastName:"purohit",email:"[email protected]",password:"password"){
id
firstName
lastName
}
}