Skip to content

winpeed/mainteny-app

Repository files navigation

Mainteny-Uni

Mainteny Uni is an application created by Praise Obende for the administrators of a University to manage courses offered by students.

Project Description

With the application, only administrators can make changes to the student data at any particular time. The administrators can view all students data, add new students to the database , get edit courses offered by students and remove students from the school's database.

Mainteny-Uni

Live Project Repo

Installation

  1. Clone this repo
    git clone https://github.com/winpeed/mainteny-uni.git
  2. Install all NPM packages
    npm install
  3. For the application to work in your local environment, the following environment variables have to be created in your .env.local file. Create a .env.local file in the root of your project and insert your key/value pairs in the following format of KEY=VALUE:
MONGODB_URL="YOUR MONGO DATABASE URL"
MONGODB_DB="YOUR MONGODB DATABASE NAME"
NEXTAUTH_URL=http://localhost:3000

If you experience any issues with the MONGODB_URL and MONGODB_BY, you can shoot me an email.

  1. In the project directory, you can run:
"npm run dev";

to start the development server on http://localhost:3000. Open http://localhost:3000 to view it in the browser. The page will reload if you make edits. You will also see any lint errors in the console.

  1. Run
"npm run build";

Docker Compose

"docker-compose up --build";

This will build and run your container locally 🚀

Now that your container is built, you can test it locally:

"docker run -p 3000:3000 mainteny-app_mainteny";

Usage

  1. Enter the Live/Production URL http://mainteny-uni.vercel.app/ or development URL http://localhost:3000/ into your browser.

Sign In

  1. Click the button to sign in as an administrator to access the student's database.

sign-in

  1. Use the following details to sign in.
Username: admin
Password: testing1234
  1. Upon signing in successfully, you are redirected to the students dashboard with pre-populated data from the database.

student-dashboard

Add New Student

  1. To create a new student, click the" Add Student" button. Fill in the form and click submit. The new student's data is successfully created.

add-courses

View Student Biodata

  1. To view a student's complete biodata, click on any of the rows. This takes you to another page with the student's data.

student's biodata

Edit Course

  1. To edit a student's course, click the "Edit Course" button. The courses are updated upon selecting and submitting the courses offered from the modal.

edit-courses

Delete Course

  1. To delete a student's data from the database, click the "Delete Student Data" button.

delete data

Built with

Author

Praise Obende

About

Mainteny Uni is an application for the administrators of the University to manage courses offered by students

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages