Skip to content

Available version to use#4

Open
eyad-hazem-elmorsy wants to merge 21 commits intocat-backend-nodejs:mainfrom
eyad-hazem-elmorsy:main
Open

Available version to use#4
eyad-hazem-elmorsy wants to merge 21 commits intocat-backend-nodejs:mainfrom
eyad-hazem-elmorsy:main

Conversation

@eyad-hazem-elmorsy
Copy link

This contribution adds some features to the original project.

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.
@eyad-hazem-elmorsy eyad-hazem-elmorsy changed the title Some features added Available version to use May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant