Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimiit92/lambda-graphql-boilerplate
Boilerplate code for a GraphQL Lambda service
https://github.com/jimiit92/lambda-graphql-boilerplate
apollo apollo-server apollographql aws-lambda graph graph-ql graphql mongo-db mongodb serverless
Last synced: about 2 months ago
JSON representation
Boilerplate code for a GraphQL Lambda service
- Host: GitHub
- URL: https://github.com/jimiit92/lambda-graphql-boilerplate
- Owner: JimiIT92
- License: mit
- Archived: true
- Created: 2019-11-26T11:06:33.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T11:35:51.000Z (almost 2 years ago)
- Last Synced: 2024-09-26T17:23:42.503Z (about 2 months ago)
- Topics: apollo, apollo-server, apollographql, aws-lambda, graph, graph-ql, graphql, mongo-db, mongodb, serverless
- Language: JavaScript
- Homepage: https://graphql.org/
- Size: 410 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Lambda GraphQL Boilerplate
Boilerplate code to make a fast GraphQL Apollo Server
running on AWS Lambda interfacing with a MongoDB Database.Just add in your models/resolvers
and you are good to go! 😁
## 🔧 Install
Clone this repository on your local machine
```
git clone https://github.com/JimiIT92/Lambda-Graphql-Boilerplate
```Open the project in your favorite IDE or text editor
(I suggest [VSCode](https://code.visualstudio.com/))Once open, open a new terminal and install the project dependencies
```
npm install
```Remember to rename the `.env.example` file to `.env`
or make your own `.env` file!## 🔗 Dependencies
Since the project is intended to run on AWS Lambda, you need
[Serverless Framework](https://serverless.com/) installed
to make it run on your local machine too.
Otherwise you need to change the `src/app.js` code
to start a web server with [Apollo](https://www.apollographql.com/).
Note that in this case you won't be able to deploy the service
to AWS Lambda, since Lambda can't run a normal Apollo Server.## 👨🏻💻 Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## 📜 License
Licensed under the [MIT License](https://opensource.org/licenses/MIT). You are free to use, share and edit this code as you wish 😁