This is a url shortner built with nodejs (express)
and mongodb
and ❤️
- validating a url 😏
- check that a url has end point or not! 😛
- unit testing with
mochajs
--- api
----- model
------- urlModel.js // mongodb model
----- connection.mongodb.js
----- routes.js
--- public
----- scripts
------- main.jquery.js
----- views
------- index.html
------- 404.html
----- styles
------- 404.css
------- index.css
--- test
----- index.test.js
--- server.js
--- package.json
for running url-shortner server after installing
node_module
via commandnpm install
simply runnpm run server
and then go to the http://localhost:8081/
for running test methods after installing
node_module
via commandnpm install
simply runmocha
and you can see the test result right in your console!
for Working With Demo You Can Click On Link Below and do not forget to give me 🌟 🌟 🌟 🌟
Check Out Demo! 😄