GithubHelp home page GithubHelp logo

mathculthello / savva3 Goto Github PK

View Code? Open in Web Editor NEW
29.0 9.0 13.0 5.55 MB

Сайт Алексея Савватеева

Home Page: https://savvateev.xyz

Python 51.79% HTML 31.08% CSS 0.04% JavaScript 12.76% Makefile 0.35% SCSS 3.55% Dockerfile 0.31% Shell 0.11%
site savvateev python django mathematics education educational-project alexeysavvateev

savva3's Introduction

Развертывание для разработки

# Клонируем репозиторий
git clone https://github.com/aeifn/savva3

# Создаем виртуальное питон-окружение
virtualenv venv
source ./venv/bin/activate

# Установка зависимостей
pip install -r requirements.txt
npm install

# Создание базы данных
./manage.py migrate

# Создание пользователя:
./manage.py createsuperuser

npm run dev

#Теперь сайт можно запустить:
./manage.py runserver

В браузере:

http://localhost/

http://localhost/admin

Jupyter notebook:

./manage.py shell_plus --notebook

Фронтенд

Чтобы собрать фронтенд:

npm install
npm run dev

TODO

TODO

Что где находится

шаблоны в папках templates.

стили в папке webpack-src/scss.

yarn ставит JS зависимости в директорию node_modules

(зависимости описаны в файлах package.json и yarn.lock)

webpack из разрозненных файлов в директории webpack-src генерирует единый файл со стилями и JS, который подключается к шаблонам

настройки webpack находятся в файле webpack.config.js

директории allmath base events features jokes questions содержат приложения (это условно говоря, код разных разделов сайта)

директория savva3 - это основное (связующее) приложение. там хранятся все настройки проекта и конфигурация адресов страниц

webpack надо запускать после каждого изменения в коде фронтенда. но можно и запустить его в режиме отслеживания изменений: webpack --mode=development -w

savva3's People

Contributors

aeifn avatar shvl avatar thelonius avatar tigertv avatar tripang avatar yaroslavche avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

savva3's Issues

Привести в порядок сайт

Во вложении скрины того, как выглядит главная страница сайта на 11" мониторе.
Раздел "Лекции" тоже где-то не здесь.

2019-05-22_13-59-37
2019-05-22_13-56-39
2019-05-22_13-59-05

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.