- What the Program Is
- How to Download and Install It
- System Dependencies and Configuration
- Database Creation and Initialization
- How to Use
This project aims to streamline the process of matching qualified undergraduate students with specific course sections for grading positions within the Computer Science and Engineering (CSE) department. Students can sign up, view the course catalog, and apply to be a grader for specific sections. Instructors can sign up, view the course catalog, and submit recommendations for students to become graders. Admins can sign up, view/edit the course catalog, approve instructor/admin accounts, and assign students to be graders for course sections.
You must first setup a development environment.
- Follow the steps here: https://osu.instructure.com/courses/143658/pages/setting-up-a-development-environment?module_item_id=10221842
- Open VS Code and click on the bottom left corner to open a remote connection, then select connect to WSL.
- Navigate to the top of this github page, hit the green code button and copy the HTTPS link to your clipboard.
- In VS Code navigate to what folder you want to create the application. Once inside open a terminal and type the command: git clone https://github.com/cse-3901-sharkey/2023-SU-Team-2-Lab-2.git
- Then open the newly created app folder in VS Code
- Run these commands in your terminal: 'rails db:migrate' 'bundle install' 'rails db:seed'
- Now you are prepared to run the application. Type 'rails server' into terminal and follow the link printed in the terminal to open it in your browser. (Should look like: * Listening on http://127.0.0.1:3000)
Ruby version: Ruby version should be 3.2.0. To check your Rails version use the command 'ruby -v'.
Rails version: Rails version should be 7.0. To check your Rails version use the command 'rails -v'.
Node: Node should be 16.
VScode: We may recommend to use the latest version.
Before running the program, there are a few steps to do to setup the database.
-
To create the database, you may run 'rails db:create'. However, Database 'db/development.sqlite3' already exists.
-
To migrate, you need to run 'rails db:migrate' to apply the database migration.
-
To make seed, you need to run 'rails db:seed' to create a default admin user account for approving new sign-ups.
Please start with the default admin user (email: admin.1@osu.edu, password: password) account. After logging in with admin email and password, go to top bar and click Course Catalog. It will direct to an empty page of Course Catalog for now. Click Reload Courses, and all the course information will be loaded to the system. (Click Course Catalog to refresh the page.)
Now, you can log out admin user account and sign up for the student, instructor, or admin user account. Student user account can be signed up directly, while both instructor and admin user account need approval from existed admin user. The approval can be done in Account Approval page in admin user homepage.