Skip to content

josephyhu/Learning-Journal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

125 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning Journal

A journal where a user can add entries for online courses that they have taken created with Laravel and with a help from this helpful Laravel tutorial.

  • Laravel 8
  • MySQL 8
  • PHP 7

Build License Requirements Status

How to Run the Program

  1. Download and unzip the project.
  2. Run composer install.
  3. Set up a MySQL database and connect to it.
  4. Create an .env file and put in the relevant data (look at the example file).
    • If you want to enable email functionality (like sending a password reset email), you will have to edit the mail settings in the .env file as well.
  5. Run php artisan migrate.
  6. (Optional) If you want to use the provided categories, run php artisan db:seed --class=CategoryTableSeeder.
  7. Run php artisan serve.
  8. Go to localhost:{PORT_NUMBER} in your browser.

Web Routes

Main Routes

  • /: Index
  • /dashboard: Home
  • /register: Registration form
  • /login: Login form

Category Routes

  • /categories: Listing of all categories
  • /categories/{category_id}: Listing of all entries for a category
  • /categories/create: Add a new category
  • /categories/{category_id}/edit: Edit an existing category

Entry Routes

  • /users/{user_id}/entries: Listing of all entries in descending order by date added
  • /users/{user_id}/entries/{entry_id}: A single entry
  • /users/{user_id}/entries/create: Add a new entry
  • /users/{user_id}/entries/{entry_id}/edit: Edit an existing entry

User Routes

  • /users: Listing of all registered users
  • /users/{user_id}: Listing of all entries for a user
  • /user/profile: User settings

API Routes

Category Routes

  • (GET) /categories: Listing of all categories
  • (GET) /categories/{category_id}: A single category
  • (POST) /categories: Create a category
  • (PUT/PATCH) /categories/{category_id}: Edit an existing category
  • (DELETE) /categories/{category_id}: Delete a category

Entry Routes

  • (GET) /users/{user_id}/entries: Listing of all entries
  • (GET) /users/{user_id}/entries/{entry_id}: A single entry

User Routes

  • (GET) /users: Listing of all registered users
  • (GET) /users/{user_id}: A single user

Updates

Update 3

  • Added API functionality.

Update 2

  • Fixed the bug that enabled users to see other users' entries.

Update 1

  • Implemented user authentication.

About

A journal of online courses that a user has taken.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors