Available version to use#4
Open
eyad-hazem-elmorsy wants to merge 21 commits intocat-backend-nodejs:mainfrom
Open
Available version to use#4eyad-hazem-elmorsy wants to merge 21 commits intocat-backend-nodejs:mainfrom
eyad-hazem-elmorsy wants to merge 21 commits intocat-backend-nodejs:mainfrom
Conversation
This commit installs mongoose package, creates a folder for models and adds shortener model with its schema.
This commit handles POST requests from home page to create new url shortener and save it into database.
This commit updates home page GET request handler to access urls from database.
This commit updates home page with ejs to get all URLs from database and show them in a table.
This commit prints url and alias correctly with ejs.
This commit handles GET requests to pages with shortened URL such that if this alias exists in database, the user will redirected to the original page and if this alias not exists, the error is handled with 404 status code and 'Not Found' message.
This commit adds database URL and connects to it after starting the application
This commit sends domain to index.ejs file.
This commit updated home page content and makes project dependent on domain.
This commit changes "start" script to run nodemon.
This commmit validates the alias entered by user if it has not any special characters except '_' and has minimum length of 4 characters.
This commit fixes validator regex.
This commit updates not-avaliable.ejs message and checks if the entered alias is available or not.
This commit deletes url when button delete is pressed.
This commit fixes deletion of url from app and database.
This commit updates README.md file with a suitable documentation about project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This contribution adds some features to the original project.