Giter Club home page Giter Club logo

munisisazade / developer_portal Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 30.12 MB

Developer portal is a hub for the latest news, blogs, comment, strategy and advice from leading brands and experts across the apps industry. It provides a free, practical resource that aims to help developers negotiate the industry, access top level advice and ensure they are able to negotiate the industry as effectively and profitably as possible. With thousands of engagements every week, Developer portal is your perfect partner for integrated advertising campaigns. Get in touch to transform your advertising results.

Home Page: https://itelpark.com

License: MIT License

Python 68.63% HTML 4.56% JavaScript 21.42% CSS 5.39%

developer_portal's Introduction

README

Developer Network

--- How to install and use for Linux

First you need to install python3 and after install django you can run the project following bellow steps

#!

$ sudo apt-get update
$ sudo apt-get install python3-pip python3-dev libpq-dev postgresql postgresql-contrib
$ git clone https://github.com/munisisazade/developer_portal.git
$ cd developer_portal/

--- Set up python3 evniroment

Create virtualenviroment for python3:

#!

$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt

Create the PostgreSQL Database and User:

$ sudo -u postgres psql
postgres=# CREATE DATABASE myproject;
postgres=# CREATE USER myprojectuser WITH PASSWORD 'password';
postgres=# GRANT ALL PRIVILEGES ON DATABASE myproject TO myprojectuser;
postgres=# \q

After all done this without errors you can use this project. Run django server

$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py runserver
 Performing system checks...

 System check identified no issues (0 silenced).
 February 18, 2017 - 14:07:32
 Django version 1.10.5, using settings 'develop.settings'
 Starting development server at http://127.0.0.1:8000/
 Quit the server with CONTROL-C.

for Windows

--- How to install and use for Linux

install python3 for windows read this docs python3 for windows

--- The development server

Change into the outer mysite directory, if you haven’t already, and run the following commands:

#!

$ python manage.py runserver

--- Creating a project / app

Project:

#!

$ django-admin startproject <myproject>

To create your app, make sure you’re in the same directory as manage.py and type this command:

#!

$ python manage.py startapp <appname>

--- Superuser

Create superusers using the createsuperuser command:

#!

$ python manage.py createsuperuser --username=joe [email protected]

--- Migrate

By running makemigrations, you’re telling Django that you’ve made some changes to your models (in this case, you’ve made new ones) and that you’d like the changes to be stored as a migration.

#!

$ python manage.py makemigrations <appname>

Now, run migrate again to create those model tables in your database:

#!

$ python manage.py migrate

--- Running tests

In the terminal, we can run our test:

#!
$ python manage.py test <appname>

--- Shell

To invoke the Python shell, use this command:

#!
$ python manage.py shell

--- Install dependencies

Installing required dependencies on virtual environment:

#!
$ pip freeze > requirements.txt
$ pip install -r requirements.txt

--- Credits & Helpers

  1. Extend your RAM by adding a swap file - http://stackoverflow.com/a/18335151/968751
  2. Make ffmpeg executable everywhere - http://askubuntu.com/a/613799
  3. FFMpeg permission denied error - http://askubuntu.com/a/478019
  4. One liner ffmpeg (or other) to get only resolution? - http://askubuntu.com/a/577431 / http://stackoverflow.com/a/29585066 (json)
  5. Revert to a commit by a SHA hash in Git? - http://stackoverflow.com/a/1895095

--- Used modules & Apps

  1. Media server: ngnix RMTP
  2. Video edit: ffmpeg

developer_portal's People

Contributors

munisisazade avatar

Stargazers

 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.