Giter VIP home page Giter VIP logo

course_planner's Introduction

Build Status codebeat badge Coverage Status

Course Planner

Development Setup

Local

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with cd assets; npm install; cd ..
  • Start Phoenix endpoint with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Production Setup

Heroku

  1. Deploy Deploy with the previous Heroku button. Make sure to setup the environment variable ENDPOINT_URL_HOST in the deploy page. For example, if the selected App name is course-planner, then the ENDPOINT_URL_HOST should be course-planner.herokuapp.com.
  2. Create a SendGrid API Key and add it to the environment variable SENDGRID_API_KEY in the Heroku Settings tab.

Gigalixir

For more details, see the Gigalixir quick start

  1. Clone this repository
  git clone https://github.com/digitalnatives/course_planner.git
  1. Go to the project directory
  cd course_planner
  1. Install gigalixir CLI (requires python 2.7)
  pip install gigalixir
  1. Login with your Gigalixir account
  gigalixir login
  1. Create the application your-app-name, which should be unique
  APP_NAME=$(gigalixir create --name your-app-name)
  1. Create the database, and wait its state to become AVAILABLE.
  gigalixir create_database $APP_NAME
  gigalixir databases $APP_NAME
  1. Set the environment variables
  gigalixir set_config $APP_NAME DATABASE_URL $YOUR_DB_URL
  gigalixir set_config $APP_NAME SENDGRID_API_KEY $YOUR_SENDGRID_API_KEY
  gigalixir set_config $APP_NAME EMAIL_FROM_NAME $EMAIL_FROM_NAME
  gigalixir set_config $APP_NAME EMAIL_FROM_EMAIL $EMAIL_FROM_EMAIL
  1. Deploy the code
  git push gigalixir master
  1. Run the data seed
  gigalixir run $APP_NAME Elixir.CoursePlanner.ReleaseTasks seed

course_planner's People

Contributors

ghatighorias avatar ggpasqualino avatar rhnonose avatar laszlokardinal avatar jesseshieh 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.