GithubHelp home page GithubHelp logo

kaidamasaki / ada-dashboard Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 954 KB

License: GNU General Public License v3.0

Elixir 8.90% CSS 0.63% JavaScript 89.16% HTML 1.29% Shell 0.02% Batchfile 0.01%

ada-dashboard's Introduction

Ada Dashboard

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Requirements

  • Elixir (brew install elixir on macOS)
  • Postgres (brew install postgres on macOS)
  • Google API key with "calendar" scope (this requires approval unless the app is marked as "internal").
  • The following environment variables to be set/exported:
    • GOOGLE_CLIENT_ID (from the Google Dashboard)
    • GOOGLE_CLIENT_SECRET (from the Google Dashboard)
    • REDIRECT_URI (Should #{PROTOCOL}://#{HOST}:#{PORT}/auth/google/callback, eg. "http://localhost:4000/auth/google/callback")

Deploying

Render.com

The application is already set up to deploy on render.com. It requires a PostgreSQL service and a Web Service.

Environment

The following environment variables need to be set:

  • DATABASE_URL (from the PostgreSQL service instance)
  • ELIXIR_VERSION should be set to a recent release (I used 1.4.2).
  • ERLANG_VERSION should be set to a recent release (I used 25.1.2).
  • GOOGLE_CLIENT_ID see above.
  • GOOGLE_CLIENT_SECRET see above.
  • REDIRECT_URI see above.
  • SECRET_KEY_BASE should be the stored output of mix phx.gen.secret.

Settings

The "Build Command" should be set to:

./build.sh

The "Start Command" should be set to:

_build/prod/rel/dashboard/bin/dashboard eval Dashboard.Release.migrate && _build/prod/rel/dashboard/bin/dashboard start

All other settings can be left as their defaults.

Resources

ada-dashboard's People

Contributors

kaidamasaki avatar

Watchers

 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.