Giter Club home page Giter Club logo

post-webapp-api's Introduction

Post WebApp API

Overview

This is the backend for Post Web App.

Features

  • Send presigned url for image uploads to s3.
  • AWS RDS with MySql for database.

Tech Stack

Backend

Getting started

  1. Clone the repository: git clone https://github.com/kumang-subba/post-webapp-api.git
  2. Navigate to the project directory
  3. Install dependencies: npm install
  4. Start the backend server: npm run start

Configuration for s3

  1. AWS s3 Configuration: Set up an AWS S3 bucket for secure image storage and retrieval
  2. Add proper access and policies to the bucket
  3. Setup cors configuration in the bucket
  4. Add an IAM user with appropriate access and attach required policies

Configuration for RDS with MySQL

  1. Create MySQL database in AWS RDS
  2. Remember to select the Free tier (!important)
  3. Database username and password is created when database is created
  4. Edit inbound rules to allow traffic from your ip i.e "My IP"
  5. Database host is Endpoint in connection & security on the DB's instance page.

.env sample

BUCKET_NAME=
BUCKET_REGION=
AWS_USER_ACCESS_KEY_ID=
AWS_USER_SECRET_ACCESS_KEY=

DATABASE_NAME=
DATABASE_USERNAME=
DATABASE_PASSWORD=
DATABASE_PORT=
DATABASE_HOST=

JWT_SECRET_KEY=

post-webapp-api's People

Contributors

kumang-subba avatar

Stargazers

 avatar

Watchers

 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.