Skip to content

gda2048/algo_deep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlgoLearn

Algolearn. What is it? If you are a student, teacher, or just a person who wants to understand the algorithms, their structure, to know why they are needed, then you should know about our project. We are the Algolearn team, which has made a learning platform for you on algorithms, where you can become a student or teacher, receive or transfer your knowledge. How it works? You register, choose a course, get marks for passing it, test your knowledge during tests. The teacher can create his course and start to supervise the “class”, a group of people who have chosen your course. That's it, a brief excursion into our world of algorithms. Thank you for your attention.

python3.7

to create and activate venv

python3 -m venv venv
source venv/bin/activate

to create requirements.txt

pip freeze > requirements.txt

to install everything from requirements.txt

pip install -r requirements.txt

I am not sharing database now. Create your own one. All this information will be hidden.

to install postgre

sudo apt-get install postgresql postgresql-server-dev

to check version

psql -V

start configuring database and user

create user gda2048 with password 'algolearn';
alter role gda2048 set client_encoding to 'utf8';
alter role gda2048 set default_transaction_isolation to 'read committed';
alter role gda2048 set timezone to 'UTC';
create database algo_learn_psql owner gda2048;

database PostgreSQL 10.7

    'ENGINE': 'django.db.backends.postgresql_psycopg2',
    'NAME': 'algo_learn_psql',
    'USER': 'gda2048',
    'PASSWORD': 'algolearn',
    'HOST': '127.0.0.1',
    'PORT': '5432',

Create first user (superuser)

for using admin panel .../admin/

python3.7 manage.py createsuperuser
    'Username': 'gda2048'
    'email': 'goncharovdma@gmail.com'
    'password': 'algolearn'

Heroku

in algo_deep repo:

heroku login
heroku git:remote algo2048demo
git push heroku dev:master # pushing