Git Product home page Git Product logo

glowing-enigma's Introduction

Glowing Enigma REST API

Glowing Enigma REST API code.

  • Python 3.x
  • Django Web framework
  • Django REST

Dev Notes

After you have cloned into the project cd into the dir with the Vagrant file, then do the following:

  1. Vagrant up
  2. Vagrant ssh
  3. cd /vagrant/
  4. python -m venv ~/env
  5. source ~/env/bin/activate
  6. pip install -r requirements.txt
  7. python manage.py runserver --noreload 0.0.0.0:8000

Pre-deploy config

  1. Within the settings.py file under the profiles_project dir, you will need to edit the "allowed hosts". Place your EC2 Public DNS IPv4 address here and add 127.0.0.1 so the API server will run on both your EC2 and your local.

  2. Configure your Ubuntu 18.01 LTS EC2 instance via AWS console and setup your ssh key.

Deploy

The deployment is for an Ubuntu 18.01 LTS EC2. You will need to ssh into your EC2 instance and then perform the following:

  1. Download and run the setup.sh via curl from the repo.
  2. curl -sL https://raw.githubusercontent.com/ryancarolina/glowing-enigma/master/deploy/setup.sh | sudo bash -
  3. After any changes are pushed to the repo, run the update.sh to pick up the changes on the EC2 instance.
  4. The update.sh script needs to be ran after local changes are made as well to restart the API server.
  5. /usr/local/apps/profiles-rest-api$ sudo sh ./deploy/update.sh

glowing-enigma's People

Stargazers

Ryan Conklin avatar

Watchers

James Cloos avatar Ryan Conklin 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.