Giter VIP home page Giter VIP logo

elixir-backend's Introduction

Elixir Backend

The frontend's here.

Setup

  1. Fresh install?, run scripts/setup.sh to install the required packages like Docker.
  2. Deploy/build docker container
  3. Run python manage.py migrate.
  4. python manage.py runscript populate_coding_tables
  5. Get into web container,
  6. In the container, run the following commands to generate JWT keys:
    1. ssh-keygen -t rsa -P "" -b 4096 -m PEM -f jwtRS384.key
    2. ssh-keygen -e -m PEM -f jwtRS384.key > jwtRS384.key.pub

Deploying to Remote

  1. Setup passwordless SSH on remote.
  2. On the remote machine, run the scripts/setup.sh script (if 1st deploy).
  3. Create context for remote: docker context create remote --docker "host=ssh://user@ip"
  4. Change docker context: docker context use remote
  5. Deploy: COMPOSE_DOCKER_CLI_BUILD=0 docker-compose up -d --build
  6. Confirm that containers are up & running: docker ps (docker-compose logs -f to check logs)

elixir-backend's People

Contributors

dependabot[bot] avatar st3v3nmw avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

raj7912

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.