Skip to content

Ruby On Rails WebAPI project that allows students to view courses and register for them, while instructors can manage student registrations and view student data

Notifications You must be signed in to change notification settings

seifhassan89/StudentCourses

Repository files navigation

Student Courses Management Web API

This is a simple Student Course Registration WebApi that allows students to view courses and register for them, while instructors can manage student registrations and view student data. The project is built using Ruby On Rails, ActiveRecord and mysql2.

Features

  • CRUD operations for students and their gender.
  • CRUD operations for Courses and their Department.

Technologies Used

  • Ruby
  • Ruby on rails
  • mysql2 database
  • Swagger

Getting Started

To get started with this project, follow these steps:

Installing

  1. Clone the repository to your local machine.
git clone https://github.com/seifhassan89/StudentCourses
  1. Install Ruby and Ruby on Rails if you haven't already
gem install rails -v 5.0.1
  1. Run bundle install to install all required gems.
bundle install

Database Connection

1.to create the database run:

db:create

2.to run the database migrations run:

db:migrate

Run the application

  1. Here is command to run your application:
rails s

You should now be able to access the application at http://localhost:3000. As you should now be able to access the Swagger Documentation at http://localhost:3000/api-docs/index.html Or http://localhost:3000/Api/#.

Usage

The API endpoints can be tested using a tool such as Postman. The following endpoints are available:

image image image image

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new feature branch.
  3. Make your changes.
  4. Create a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Ruby On Rails WebAPI project that allows students to view courses and register for them, while instructors can manage student registrations and view student data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published