Create-serverless-api - Create Serverless APIs with no infra configuration

Overview

Create Serverless API

Create Serverless APIs with no infra configuration.

It is an aws serverless-based backend api template created for beginners.

You can service api without knowing the cloud infrastructure.

And Create Serverless API works on macOS, Windows, and Linux.

Create Serverless API was inspired by the create-react-app.

πŸš€ Quick Overview

πŸ“Œ Before we proceed with the work below, you must set aws credential

```
npx create-serverless-api my-api
cd my-api
npm bootstrap
npm deploy
```

And Check the api endpoint output to the terminal.

You will have a fully operational api service.

For detail, please refer to the explanation below.

✨ Feature

  • Automatic aws infrastructure completion through documents in the OpenAPI specification.
  • Install only essential packages for each API.

Detail Feature

πŸ‘ The detail feature roughly say that this package is very cool.

  • Infrastructure distribution through IaC makes it easy to modify.
  • Using FaaS, monitoring is easy and stability can be obtained by horizontal expansion.
  • Supports monitoring and logging with aws X-ray and aws CloudWatch.
  • Babel settings are set for using typescript.
  • Can execute local test similar to the aws lambda.

Environment in Lambda Container

βœ… You can customize this.

  • Node 14.x

Detail Usage

  • ⚠ Caution Following this usage, your api will be serviced as a cloud service. You spend money according to the amount of api calls. so make sure to check out AWS Pricing Policy.
  1. Login to aws console

  2. Make iam user through aws IAM users.

    • Need Access key credential type.
    • Recommend AdministratorAccess policy through the attachment policies directy button for easy work.
    • Save the access key ID and secret access key that came out like that.
  3. Configurate your aws credentials file

    βœ… Windows default path: C/Users/{userName}/.aws/credentials βœ… Linux or macOS default path: ~/.aws/credentials

    [development]
    aws_access_key_id={your_aws_access_key_id}
    aws_secret_access_key={your_aws_secret_access_key}
    
    [production]
    aws_access_key_id={your_aws_access_key_id}
    aws_secret_access_key={your_aws_secret_access_key}
    

    πŸ“Œ If you want to change the name, please change it with the script of package.json

  4. Creating an API

    npx create-serverless-api my-api
    

npx create-serverless-api my-api

  1. Go the project directory.

    cd my-api
    

npx create-serverless-api my-api

  1. Bootstrap for aws deployment.

    // Development
    npm run bootstrap
    
    // Production
    npm run bootstrap-prod
    
  2. Deploy to aws

    βœ… The api is served on the address output to the terminal, so make sure to save it.

    // Development
    npm run deploy
    
    // Production
    npm run deploy-prod
    
  • Local execute

    npm run offline
    
  • Destroy the api

    // Development
    npm run destroy
    
    // Production
    npm run destroy-prod
    

πŸ‘ Contributing

Pull requests and 🌟 stars are always welcome.

For major changes, please open an issue first to discuss what you would like to change.

πŸ“© Contact

[email protected]

Others

πŸ‘ We recommend third-party services that suit the characteristics of serverless services.

  • We recommand Dash Bird service for watch lambda infomations.
  • We recommand Planet Scale service for database server.
Owner
awmaker
awmaker
Refactoring a MERN stack react based front end starter code with a fully functioning Google Books API search engine built with RESTful API to be built with GRAPHQL API with Apollo Server.

21_MERN_GoogleBookSearchEngine Task Refactoring a MERN stack react based front end starter code with a fully functioning Google Books API search engin

Dionne Noella 4 Nov 26, 2021
React SPA App with Serverless Backend and Congito Auth Demo

React SPA App with Serverless Backend and Congito Auth Demo Overview This samples shows how to make a SPA application with serverless backend by AWS C

AWS Samples 7 Jan 10, 2022
An example configuration of a fullstack Node app with PostgreSQL using Docker Compose

Usage To use this project make sure you have Docker installed then run the follo

Alex 8 Dec 29, 2021
CodeClan - Week 9 - Group Project - App created using React, MongoDB and multiple APIs

Education Station Synopsis This app was completed by Cohort E49 for CodeClan's Professional Software Development course. The brief was to create an ed

Tristan Tinning 6 Jul 14, 2021
A full Realtime Chat Application with Social Auth and dedicated chat APIs/sockets.

Iced-Chat A full Realtime Chat Application with Social Auth and dedicated chat APIs/sockets. It uses Firebase(from google) for auth. It also uses Chat

Tindi Brown 13 Dec 29, 2021
it is a React application which uses SpaceX open source graphql APIs

spaceX-mini-project it is a React application which uses SpaceX open source graphql APIs

Abduallah-Barmu 1 Nov 5, 2021
Website using React and Rick and Morty APIs

RICK and MORTY WORKSHOP ?? ?? ?? ?? Website using Rick and Morty APIs. It lists

Seyyid Fatih KOÇ 4 Jan 14, 2022
A React Realtime Chat Application with Social Auth and dedicated chat APIs/sockets.

Chat-Room This is a fully responsive React chat application with social authentication including Google and Facebook using Firebase online statuses, g

Arindam Goswami 2 Jan 22, 2022
Single Page Application built using React, Context API and OMDb API.

Movie Search App This project is a React application with functions to search for movies and add movies to favorites using OMDb API. Home Page Favorit

Efecan PΔ±nar 19 Nov 19, 2021
Currency converter made with React, XE API and REST Countries API.

Currency Converter HOW TO RUN THE APP To run the app from the terminal, navigate to the root folder and first run 'npm i' to install the node modules.

Kasjan 6 Nov 25, 2021
Weather Application built using ReactJs , OpenCage API and OpenWeatherMap API

Weather-bot Netlify Site Status : Weather application built using ReactJs, OpenCage Api and OpenWeatherMap Api Tech Stack and Dependencies Name Descri

Kaushik Selvaraju 6 Jan 10, 2022
TryShape is an open-source platform to create shapes of your choice using a simple, easy-to-use interface. You can create banners, circles, polygonal shapes, export them as SVG, PNG, and even as CSS.

TryShape is an open-source platform to create shapes of your choice using a simple, easy-to-use interface. You can create banners, circles, polygonal shapes, export them as SVG, PNG, and even as CSS.

TryShape 99 Jan 15, 2022
A simplified Jira clone built with React/Babel (Client), and Node/TypeScript (API). Auto formatted with Prettier, tested with Cypress.

A simplified Jira clone built with React and Node Auto formatted with Prettier, tested with Cypress ?? Visit the live app | View client | View API Wha

Ivor Reic 7.9k Jan 21, 2022
A Netflix clone created using React. It is built using modern react tools/best practices, such as hooks, context API, and redux toolkit.

Netflix-Clone A Netflix clone I created for the sake of practicing React and Redux. It features design patterns recommended by the documentation. Some

Subhanga Upadhyay 83 Jan 9, 2022
A ReactJS clone application of the popular Spotify music streaming service. This application utilizes the Spotify API and the Spotify Web Playback SDK

Spotify Clone Front-End A front-end clone project of the Spotify web player. The project was created using the create-react-app CLI. The app is meant

null 217 Jan 18, 2022
Api server for Tclone, a concise, fast, and feature rich Twitter clone built with MERN stack.

Api server for tclone Try the app here React frontend repo here This project is my own take on building Twitter clone, I have tried to keep things sim

muzamil 46 Dec 22, 2021
Netflix Clone. Search and find your favorite movie with coming from TMDB API. Also you can watch the trailers πŸ“½οΈ 🍿 Used ReactJS, Material UI, Firebase, Firestore Database

Netflix Clone. Search and find your favorite movie with coming from TMDB API. Also you can watch the trailers ??️ ?? Used ReactJS, Material UI, Firebase, Firestore Database

null 9 Dec 18, 2021
A React app that uses Spotify's Web API to get your favorite tracks, artists, and recently played songs.

Explorify A React app that uses Spotify's Web API to get your favourite tracks, artists and recently played songs. You can also filter them by timelin

Saket S 26 Oct 15, 2021
A React & react-router-powered implementation of Hacker News using its Firebase API.

react-hn A React & react-router-powered implementation of Hacker News using its Firebase API.

Jonny Buchanan 2.2k Jan 16, 2022