Skip to content

nabemon/dreamkast

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,654 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dreamkast

Online Conference Platform

Prerequisites

  • Docker Compose
  • Auth0 application keys

How to create auth0 applications keys

See Auth0 document

After create configuration, create .env file in the top-level directory.

AUTH0_CLIENT_ID=FVYbe7dsf1fowelsdlkdsfLwofArfNUznaeku
AUTH0_CLIENT_SECRET=jBeB2Jd4sdfsdfdgetwarzOXYsdEyasdfq3wer3r9wglkj129UoF_XJuD
AUTH0_DOMAIN=yourdomain.auth0.com

Docker compose read .env file automatically.

If you are running a rails server without Docker compose, you need to set environment variables like this.

export AUTH0_CLIENT_ID=FVYbe7dsf1fowelsdlkdsfLwofArfNUznaeku
export AUTH0_CLIENT_SECRET=jBeB2Jd4sdfsdfdgetwarzOXYsdEyasdfq3wer3r9wglkj129UoF_XJuD
export AUTH0_DOMAIN=yourdomain.auth0.com

Setup environment

This repository works with

  • Ruby
  • Node.js
  • Yarn
  • Docker Compose (for MySQL and Redis)
  • AWS CLI

the version is controlled by .node-version and .ruby-version file.

nodenv and rbenv are recommended to install those.

You need to install shared-mime-info

  • macOS: brew install shared-mime-info
  • Ubuntu, Debian: apt-get install shared-mime-info
$ yarn install --check-files
$ bundle install
$ bundle exec rake webpacker:compile

Then, create .env-local file and fill these values. If you don't know correct values, please ask us.

export AUTH0_CLIENT_ID=
export AUTH0_CLIENT_SECRET=
export AUTH0_DOMAIN=
export SENTRY_DSN=
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
export S3_BUCKET=
export S3_REGION=
export MYSQL_HOST=db
export MYSQL_USER=user
export MYSQL_PASSWORD=password
export MYSQL_DATABASE=dreamkast
export REDIS_URL=redis://redis:6379
export RAILS_MASTER_KEY=

Next, configure awscli and logged in registry using it.

source .env-local
aws ecr get-login-password | docker login --username AWS --password-stdin http://607167088920.dkr.ecr.ap-northeast-1.amazonaws.com/

Then, setup databases, ui and load balancer by running Docker Compose

$ docker-compose pull ui
$ docker-compose up -d db redis nginx ui

Run the application

$ ./entryponit.sh

For local development

Run Webpack dev server in case you want to edit JavaScript.

$ ./bin/webpack-dev-server

DB migration and to add seed data

$ bundle exec rails db:migrate
$ bundle exec rails db:seed

About

dreamkast is Online Conference Platform !!!!!!

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Ruby 53.4%
  • HTML 22.6%
  • JavaScript 14.8%
  • SCSS 7.9%
  • Shell 0.9%
  • Dockerfile 0.3%
  • CSS 0.1%