Git Product home page Git Product logo

boossti-backend's Introduction

Boossti Backend

How to setup AWS AppSync GraphQL Backend and test using Live Lambda Development

Setup AWS CLI

Install AWS CLI.

Configure your AWS cli with the credentials

$ aws configure
AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Default region name [None]: us-west-1
Default output format [None]: json

If you are doing first time setup create your new branch if you havn't already. (Skip this step if you already have a branch)

{branch-name} = <your-first-name>+<first-letter-of-lastname> eg - sumij
{stage-name} = boossti-backend-{branch-name} eg - boossti-backend-sumij

Create your branch

git checkout -b {branch-name}

Clone database

Install mongodb shell then run these commands

mongodump --uri mongodb+srv://<mongodb-username>:<mongodb-password>@codemarket-staging.k16z7.mongodb.net/boossti-backend-vivekt
mongorestore --uri mongodb+srv://<mongodb-username>:<mongodb-password>@codemarket-staging.k16z7.mongodb.net --db=<your-stage-name> dump/boossti-backend-vivekt

Installation

Use the package manager yarn to install dependecies.(Don't use npm install)

yarn install

Duplicate .env.example and rename to .env and add your MONGO_USERNAME and MONGO_PASSWORD

Commands

Starts the local Lambda development environment.(for local testing always use {repository-name}-{your-branchname} eg boossti-backend-sumij)

npx sst start --stage {repository-name}-{your-branchname}

example - npx sst start --stage boossti-backend-sumij

Runs your tests using Jest. Takes all the Jest CLI options.

yarn test

Deploy all your stacks to AWS. Or optionally deploy a specific stack. (for deploy always use {repository-name}-{your-branchname} eg boossti-backend-sumij)

npx sst deploy --stage {repository-name}-{your-branchname}

example - npx sst deploy --stage boossti-backend-sumij

Remove all your stacks and all of their resources from AWS. Or optionally remove a specific stack.

1 Remove Stack

npx sst remove --stage {repository-name}-{your-branchname}

example - npx sst remove --stage boossti-backend-sumij

boossti-backend's People

Contributors

vivekvt avatar appdatasoft avatar 0xsonu avatar muzzamilshaikh avatar arjavsethi avatar sahilshahane avatar has12zen avatar mintujupally avatar rajdama avatar aman1601k avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.