Lowell High School's new course selection website
Make sure you're in the online-arena
directory. Once there, run the following two commands to configure your application correctly:
$ bundle install --without production
$ rake setup:dotenv
If you're using Cloud9, run the application with
$ ruby online-arena.rb -p $PORT -o $IP
If you're on your own computer, run the application with
$ ruby online-arena.rb
If everything runs successfully, you should be able to visit http://localhost:4567 and see the web application.
------------------Instructions for admins----------------------
-
You must add a "category" for example "Math" or "Social Studies"
-
You must add a "subject" or the name of the class you are trying to add, for example "Geometry" or "AP Human Geography". Make sure there are no duplicates first.
-
You must add a "teacher" or the teacher of the class, for example, "Mr. Sinn" or "Mr. Martin"
-
Then you can go and add your class.
1.2) Make sure you add a registry before you sign up or else there will be an error
-------------------Notes---------------------- irb -r./environment
Seed.rb is for all the necessary things for our program to run as Jesse said.
user = User.find_by_email("kirby@kirby.com") user.admin = true user.save