marcusholmgren / crispy-dragon

List of movies application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crispy Dragon CI

crispy-dragon

Dragon spotting application

Architectural decision are recorded

Architectural Decision Records ADR for this microservice architecture are located in the /docs folder.

Backend

Built with Serverless framework against AWS Lambda

Usage

Setup

Step Command Description
1. npm install -g serverless Install Serverless CLI
2. npm install Install Serverless dependencies
3. Set up an AWS account with admin permissions Documentation

Development

Step Command Description
1. python3 -m venv .env Creation of virtual environments (using venv)
2. source .env/bin/activate Activate virtual environment
3. pip install -r requirements.txt Install dependencies

To stop your virtual environment run deactivate in the terminal.

Deployment

`sls deploy -v`

Frontend

Built with React using Snowpack and Tailwind CSS for styling.

Environment variables

In your .env file you need the following variables

SNOWPACK_PUBLIC_REGION=us-east-1
SNOWPACK_PUBLIC_USER_POOL_ID=us-east-1_SW382wGyU
SNOWPACK_PUBLIC_USER_POOL_WEB_CLIENT_ID=4t3RdWfp5ydwadefjthscrdrcd
SNOWPACK_PUBLIC_API_URL=https://your-lambda.execute-api.us-east-1.amazonaws.com

API endpoints

  • PUT - https://.amazonaws.com/movies
  • GET - https://.amazonaws.com/movies
  • PATCH - https://.amazonaws.com/movies/{title}
  • DELETE - https://.amazonaws.com/movies/{title}
  • POST - https://.amazonaws.com/movies/{title}/attachment

Resources

About

List of movies application

License:Other


Languages

Language:TypeScript 72.2%Language:Python 23.3%Language:JavaScript 2.5%Language:HTML 1.8%Language:CSS 0.1%