Course: 1DV026 Server-side Web Programming
Institution: Linnaeus University
🌐 Live at: crud.tiberiusgh.com
In this assignment, I have created a web application to manage code snippets and handle user authorization and authentication. The web application uses the Node.js platform, Express as the application framework, and Mongoose as the object data modeling (ODM) library for MongoDB.
The application interface and the MongoDB database are running in docker containers through the compose file.
The application has full CRUD functionality (Create, Read, Update, Delete) regarding snippets, whereby users can create, read, update, and delete snippets. Anonymous users are only able to view snippets. In addition to viewing snippets, authenticated users can create, edit, and delete them. No one but the owner or creator of a snippet is able to edit and delete the said snippet.
The application notifies the user of what is happening, through flash messages using session cookies.
The application sends an HTTP status code 404 (Not Found) when a user requests a non-existent resource or a resource that requires authentication. When an authenticated user does not have permission to access a requested resource, the application sends an HTTP status code 403 (Forbidden).
The application have the ability to make the snippets private, meaning that they will only be shown to the creator of the snippet.
This project is licensed under the MIT License.
Tiberius Gherac - tiberius.gherac@gmail.com
First-year Web Development Student @ Linnaeus University
GitHub: @TiberiusGh


