Code Monkey home page Code Monkey logo

portfolio-serverless's Introduction

portfolio-serverless

TravisCI Maintainability Test Coverage Netlify Status

포트폴리오 제공용 홈페이지의 GraphQL, OAuth 서비스입니다. Google Cloud Functions, Google Cloud Datastore를 사용합니다.

사용법

$ yarn build && yarn deploy:gcp

GraphQL Schemas: https://micalgenus-portfolio-graphql.netlify.com/

필수 사항

.env

GOOGLE_DATASTORE_PROJECT_ID=<project-id>

REDIS_HOST=<redis-host>
REDIS_PORT=<redis-port>
REDIS_PASSWORD=<redis-password>

GITHUB_OAUTH_CLIENT_ID=<github-client-id>
GITHUB_OAUTH_CLIENT_SECRET=<github-client-secret>
GOOGLE_DATASTORE_PROJECT_ID
  • 배포하고자 하는 Cloud Functions와 같은 프로젝트에 존재하는 Cloud Datastore이여야 합니다.
REDIS_*
  • Redis 서버의 정보를 입력해줍니다.
GITHUB_OAUTH_CLIENT_*

GCP key

프로젝트에 Google Cloud Platform의 key를 받아 keyfile.json을 프로젝트에 포함시킵니다. 해당 계정은 다음과 같은 권한을 가지고 있어야 합니다.

  • Cloud Functions Developer
  • Cloud Datastore Index Admin
  • Deployment Manager Editor
  • Logging Admin
  • Storage Admin

RSA 인증서

JWT를 암호화 하기 위해서 RSA인증 방식을 사용하기 때문에, 인증서를 포함하여야 합니다. 아래 명령어를 사용하여 인증서를 만듭니다.

$ openssl genrsa -out private.pem 2048

로컬에서 배포하려면, 아래의 명령어를 사용해 public.pem을 만들어 줍니다.

$ openssl rsa -in private.pem -out public.pem -outform PEM -pubout

자동 배포

travis-ci를 사용하여 자동 배포를 진행하기 위해서는 .env, keyfile.json, private.pem파일을 travis-secret.tar로 묶은 후, traivs-cli의 encrypt-file을 사용하여 travis-secret.tar.enc로 만듭니다.

$ tar cf travis-secret.tar .env keyfile.json private.pem
$ travis encrypt-file travis-secret.tar --add

Development progress.

  • Signup & Login
  • OAuth Login (Github)
  • Connect to OAuth (in profile)
  • Change user profile (category)
  • Change user profile (category items documentation)
  • Change user profile (user information)
  • Send to email for valid email check
  • Update user page with custom SCSS

portfolio-serverless's People

Contributors

dependabot[bot] avatar micalgenus avatar

Stargazers

 avatar

Watchers

 avatar

portfolio-serverless's Issues

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.