Code Monkey home page Code Monkey logo

cadet's Introduction

Cadet

Build Status Coverage Status Inline docs

Cadet is the web application powering Source Academy.

Developer Setup

System Requirements

  1. Elixir 1.6
  2. Erlang/OTP 21
  3. PostgreSQL (>= 9.6)

Setting Up Local Development Environment

  1. Install Elixir dependencies
$ mix deps.get
  1. Initialise development database
$ mix ecto.setup
  1. Setup the developement secrets (replace the values appropriately)
$ cp config/secrets.exs.example config/secrets.exs
$ vim config/secrets.exs
  • A valid ivle_key is required for the application to properly authenticate with IVLE.
  • A valid cs1101s_repository, cs1101s_rsa_key, guest_username, and guest_password is required for the application to run with the --updater flag. Otherwise, the default values will suffice.
  1. Run the server in your local machine
$ mix phx.server
  1. You may now make API calls to the server locally via localhost:4000. The API documentation can also be accessed at http://localhost:4000/swagger.

Obtaining access_token in dev environment

You can obtain access_token JWT of a user with a given role by simply running:

$ mix cadet.token <role>

For more information, run

$ mix help cadet.token

Style Guide

We follow this style guide: https://github.com/lexmag/elixir-style-guide and https://github.com/christopheradams/elixir_style_guide

Where there is a conflict between the two, the first one (lexmag) shall be the one followed.

License

MIT

cadet's People

Contributors

dependabot[bot] avatar evansb avatar indocomsoft avatar ning-y avatar rrtheonlyone avatar sreycodes avatar tuesmiddt avatar

Watchers

 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.