Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abhijeetsatpute/graphql-todo
Serverless Graphql handler for a simple TODO app
https://github.com/abhijeetsatpute/graphql-todo
apollo-server crud graphql lambda-functions serverless
Last synced: 9 days ago
JSON representation
Serverless Graphql handler for a simple TODO app
- Host: GitHub
- URL: https://github.com/abhijeetsatpute/graphql-todo
- Owner: abhijeetsatpute
- Created: 2024-04-30T15:21:25.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-01T04:29:24.000Z (10 months ago)
- Last Synced: 2024-12-19T18:51:39.199Z (2 months ago)
- Topics: apollo-server, crud, graphql, lambda-functions, serverless
- Language: TypeScript
- Homepage:
- Size: 388 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# graphql-todo
## Installation
To get started, install the project dependencies by running the following command:
```bash
npm install
```## Create .env
create .env file &
Refer the [.env.sample]("./.env.example) file to provide MONGO_URI## Run a Local Standalone Apollo server
```bash
git checkout standalone-server
npm run start:dev
```## Invoke serverless handler
mock HTTP requests locally by
providing the query in [query.json](./query.json)```bash
git checkout main
serverless invoke local -f graphql -p query.json
```## Deploy
- Provide your cloud config in [serverless.yml](./serverless.yml)
- serverless will have the access of your aws cli by default
- the below command packages our app, upload the arificats, provisons the resources & config the resources & deploy functions & endpoint which will return us with a API Gateway endpoint```bash
serverless deploy
```