All Projects → studyhub-co → physics-is-beautiful

studyhub-co / physics-is-beautiful

Licence: other
Files for Physics Is Beautiful Website

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
HTML
75241 projects
CSS
56736 projects
ANTLR
299 projects

Projects that are alternatives of or similar to physics-is-beautiful

awesome-physics
🏄 A list of awesome resources I used to study Physics.
Stars: ✭ 27 (+125%)
Mutual labels:  education, physics
Landgreen.github.io
Landgreen's public site: physics notes, n-gon
Stars: ✭ 125 (+941.67%)
Mutual labels:  education, physics
rapid-router
A Blockly and python based educational game aimed at students age 5-14.
Stars: ✭ 50 (+316.67%)
Mutual labels:  education, educational-game
Anubis
Distributed LMS for automating Computing Science Courses From NYU
Stars: ✭ 184 (+1433.33%)
Mutual labels:  education
diwa
A Deliberately Insecure Web Application
Stars: ✭ 32 (+166.67%)
Mutual labels:  education
ISS
Oldschool Forum Software
Stars: ✭ 17 (+41.67%)
Mutual labels:  forum
project-omega
A collection of non-trivial coding problems to improve software engineering skills.
Stars: ✭ 15 (+25%)
Mutual labels:  education
schulcloud-client
HPI Schul-Cloud Client
Stars: ✭ 31 (+158.33%)
Mutual labels:  education
30-seconds-of-csharp
Short C# code snippets for all your development needs
Stars: ✭ 132 (+1000%)
Mutual labels:  education
awesome-learning-collections
✨ A curated list of awesome learning collections on various topics.
Stars: ✭ 76 (+533.33%)
Mutual labels:  education
3D-printed-mirror-array
3D-printable hexagonal mirror array capable of reflecting sunlight into arbitrary patterns
Stars: ✭ 2,242 (+18583.33%)
Mutual labels:  physics
spinw
SpinW Matlab library for spin wave calculation
Stars: ✭ 25 (+108.33%)
Mutual labels:  physics
Spyware
Python-based spyware for Windows that logs the foreground window activites, keyboard inputs. Furthermore it is able to take screenshots and and run shell commands in the background.
Stars: ✭ 31 (+158.33%)
Mutual labels:  education
the-aviator
🎮 Welcome to the Aviator game!
Stars: ✭ 35 (+191.67%)
Mutual labels:  educational-game
teaching-app-dev-swift-archive
DEPRECATED. Teaching App Development with Swift materials, bundled up as a single archive.
Stars: ✭ 14 (+16.67%)
Mutual labels:  education
heliopy
Python for heliospheric and planetary physics
Stars: ✭ 57 (+375%)
Mutual labels:  physics
xlines
X lines of Python
Stars: ✭ 100 (+733.33%)
Mutual labels:  education
learn-physics
物理引擎学习。详解碰撞检测原理,自己实现一个简易的物理引擎。
Stars: ✭ 33 (+175%)
Mutual labels:  physics
fdtd
A 3D electromagnetic FDTD simulator written in Python
Stars: ✭ 195 (+1525%)
Mutual labels:  physics
arogozhnikov.github.io
'Brilliantly wrong' blog, Machine Learning visualizations live here
Stars: ✭ 120 (+900%)
Mutual labels:  physics

Physics is Beautiful

Installation

Requires Python 3.5, recommended to run in a virtual environment (virtualenv, consider using virtualenvwrapper to manage your virtual environments)

  • install requirements:
pip install -r requirements.txt

Requires PostgreSQL

  • install PostgreSQL:
brew install postgresql
  • create a db named pib: ex:
createdb pib
  • connect to pib database with postgres user and create EXTENSION
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
  • install npm:
brew install node
  • get packages (from root directory):
npm install

To run locally

  • Create a .env file in the root directory that contains just:
DJANGO_SETTINGS_MODULE=pib.local_settings
  • Build the front-end
npm run dev
  • Activate your virtual environment

  • Setup the db:

./manage.py migrate
  • Create an admin account by running /manage.py createsuperuser

  • Run:

./manage.py runserver
  • You should find the site running on http://localhost:8000

  • To login to the admin account go to http://localhost:8000/admin

  • pib will look for a default curriculum named Default Curriculum, so in the admin create a curriculum titled Default Curriculum

  • Then create a unit, module, lesson, and question, then navigate to /curriculum/ to see what you created!

Structure

Django apps:

  • pib contains the project settings.
  • curricula is the main app that produces the page at /curriculum/. The files apis.py and urls_api.py utilize the Django REST Framework to make an API for the models

Models

The model hierarchy is:

  • Curriculum (to test out the app make a curriculum called “Default Curriculum”)
  • Unit
  • Module
  • Lesson
  • Question

Deployment

www.physicsisbeautiful.com and dev.physicsisbeautiful.com are hosted on Elastic Beanstalk.

To Setup:

brew install awscli
brew install awsebcli
  • run aws configure
  • run eb init (you'll need the access id/key
  • on git develop branch run eb use pib-dev
  • on git master branch run eb use pib-prod

To Deploy:

  • eb deploy It will deploy to the proper environment depending on what branch you are on.

Launching the Dev Environment

To save money, the dev environment will not always be up. To launch the dev environment, from the develop branch, run the following command:

eb create --branch_default --cfg pib-dev --timeout 40

Follow the directions, and use "pib-dev" instead of the default "physicsisbeautiful-dev".

This will take several minutes to run. If the command fails, you can try to run, eb deploy from the develop branch. Otherwise you may need to go on the aws console (Elastic Beanstalk) and rebuild the environment. The only other piece is that if you change the dns from pib-dev.us-east-1.elasticbeanstalk.com then you will need to go to the Google Domains and modify the DNS for dev.physicsisbeautiful.com to point at the new URL of the new dev environment.

Run eb deploy once the environment is up to get the latest version of dev running in the environment.

Development

  • We respect the rules set out by pep8 with the exception of a 100 character line limit.
  • We use the flake8 python script for linting.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].