Skip to content

bayoudhi/code-challenge-4

Repository files navigation

Serverless Guru - Code Challenge 4

Front demo app https://bayoudhi.github.io/code-challenge-4-front/

Functionality "Todo App"

This serverless application will allow you to host a fully functional GraphQL API to serve a simple TODO APP with simple CRUD functionalities like fetching, creating, updating, and deleting TODO items. Demo of

Prerequisites

Node.js and NPM

Before getting started, make sure Node.js is downloaded and installed. The latest version of Node.js can be downloaded from nodejs.org and it's recommended to use the LTS version.

Serverless Framework

Serverless Framework is used to build and deploy the application. Instructions for installing Serverless Framework can be found here.

Amazon Web Services (AWS)

An AWS account is required to deploy the application.

Getting started

To build and deploy the application all of what you have to do is to run the following commands:

  1. Install dependencies: yarn install

  2. Deploy yarn deploy:dev or yarn deploy:prod

To deploy to a custom stage, run this command: yarn run pre-deploy && sls deploy --stage 'stage_name'

CI/CD Setup

This solution uses GitHub Actions CI/CD pipeline to continuously build and deploys the serverless application to AWS

Package.json scripts

image

/scripts/pre-deploy.sh

image

Deploy to Dev

image

Deploy to Prod

image

Examples

image image image image

Test

This solution is developed using the TDD approach and is tested using jest library. You can find the tests in the /src/__tests__ folder.

Installed Serverless Framework Plugins

About

Serverless Guru - Code Challenge 4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published