Code Monkey home page Code Monkey logo

quote-with-you's Introduction

Quote2you

Randomly pick a quote for you that might encourage you in 2021. Hosted on AWS S3 with Cloudfront.

Image of Product Product Link: https://quote2you.yutafujii.net

Deploy

NOTE Please make sure to create AWS resources needed to deploy.

Deploy through CircleCI

When you push something to master branch, Github action fires gulp deploy command. Please make sure you're configured the following environment variable in CircleCI:

AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY

Deploy from your PC

I use gulp to deploy static files to S3, so first install gulp and some related libraries.

yarn add gulp gulp-awspublish gulp-cloudfront-invalidate-aws-publish concurrent-transform -D
yarn --global add gulp

Configure AWS credentials and run gulp deploy.

$ export AWS_ACCESS_KEY_ID=<your-key-here>
$ export AWS_SECRET_ACCESS_KEY=<your-secret-key-here>

$ gulp deploy

For more information, take a look at Nuxt official document.

Build Setup

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn dev

# build for production and launch server
$ yarn build
$ yarn start

# generate static project
$ yarn generate
$ yarn start

Going further

In a real production, you may need the following settings

  • Launch API(see below)
  • Enable Website hosting with S3 bucket
  • Set Cloudfront Origin as S3 website hositing link
  • Add record to your host (Route53)

API server

Refer to serverless-quote-service repository and launch api server.

NOTE

Because this is just a pet porject, I don't set up API servers for development/stagin environments.

Demo

demo

quote-with-you's People

Contributors

yutafujii0 avatar

Stargazers

tn1994 avatar

Watchers

James Cloos avatar  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.