/code_in_mind

A full stack MERN, GraphQL app that allows an admin to create courses that users can register to attend.

Primary LanguageJavaScript

Code In Mind

License

License: MIT

Description

This is a full stack app using the MERN stack along with Graphql. Admin users can create courses that registered users can view and click a button to enroll. User can also drop a course and admins can delete courses they create.

Table of Contents

Installation Instructions

!Code_in_Mind

  • Clone this repo by entering the folling command from the command prompt: https://github.com/judo2000/code_in_mind.git
  • Change into the new director: cd code-in-mind
  • From the command prompt, enter: npm i to install all necessary packages
  • To create an admin account you can do one of the following:
    • Open the server/models/User.js and change the default value for isAdmin to true
    • Run the command npm run dev from the command line, to start the server
    • Browse to localhost:3000 and click the Sign Up button and fill out the form
    •     <li>The account created will be an admin on the site</li>
          <li>Go back to server/models/User.js and change the default value for isAdmin back to false</li>
          <li>Any subsequent accounts created will not have admin rights</li>
      </ul>
      
      OR
      
      • The second option is toe create an account then open your database in Compass or some other program and find the record in the users tabe of the account you wish to be and admin
      • Double click on the value for isAdmin in that account and change it to true

    (back to top)

    Usage

    View deployed

    !Code_in_Mind

    A user can go to the site and click on Courses in the navbar to see which courss are available. To enroll in a course, the user must login or create an account. Once logged in the user can go back to courses and click the link to see more information then the user will see a button "Enroll in Course". If the user click this button they will be automatically enroled and redirected back to their dashboard page where all courses they are enrolled in will be displayed. On the user's dashboard there will also be a button to drop the course.

    (back to top)

    Contributors

    Matthew Brignola, Andrew McInally, Stephen Moore, Jenya Seletsky

    (back to top)

    Testing

    NA

    (back to top)

    Questions

    Matt Brignola | Andrew Mclnally | Stephen Moore | Jenya Seletsky

    (back to top)