GithubHelp home page GithubHelp logo

blidarvision's Introduction

Vision Studios

Requirements

  • asgiref==3.4.1
  • dj-database-url==0.5.0
  • Django==3.2.7
  • django-crispy-forms==1.13.0
  • gunicorn==20.1.0
  • psycopg2-binary==2.9.1
  • pytz==2021.3
  • sqlparse==0.4.2
  • typing-extensions==3.10.0.2

How to use the code

Step #1 - Clone the sources

$ git clone https://github.com/sdet-ro/blidarVision.git
$ cd blidarVision

Step #2 - Create a virtual environment

$ # Virtualenv modules installation (Unix based systems)
$ virtualenv env
$ source env/bin/activate
$
$ # Virtualenv modules installation (Windows based systems)
$ # virtualenv env
$ # .\env\Scripts\activate

Step #3 - Install dependencies using PIP

$ pip install -r requirements.txt

Step #4 - Start the API server

$ python manage.py migrate
$ python manage.py runserver

The API server will start using the default port 8000.


Deploying to DigitalOcean


Configuring app

- Click the Edit link next to the `Run commands`
  # gunicorn --worker-tmp-dir /dev/shm isionStudios.wsgi
- Click the Edit link next to the `Environment Variables`
  # DJANGO_ALLOWED_HOSTS -> ${APP_DOMAIN}
  # DATABASE_URL -> ${mydb.DATABASE_URL}
  # DEBUG -> True
  # DJANGO_SECRET_KEY -> 5.?('D<dZ,$)Jc_
        Don’t forget to click the Encrypt check box 
- To set up your database, click the Add a Database button.

Finalize and Launch

 Select "Professional App" and then click "Launch App" at the bottom. Your app will build and deploy:

Finalize and Launch

Go to "Console tab" and perform the Django first launch tasks by running the following commands:

   python manage.py migrate

   python manage.py createsuperuser

Type admin name, email, password

Reference this url for more detail.

https://www.digitalocean.com/community/tutorials/how-to-deploy-django-to-app-platform

Manage Domain

https://docs.digitalocean.com/products/app-platform/how-to/manage-domains/

blidarvision's People

Contributors

ancazpz avatar jcodewriter avatar fabianclain avatar

Watchers

James Cloos avatar  avatar

Forkers

jcodewriter

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.