To install project locally:
swearUrban is a team of smashing charming individuals:
swearUrban takes the dictionary of https://www.urbandictionary.com/ and suggests values based on what the user is typing in the search box on the homepage. Time permitting, it will pull up the result on urbandictionary, either in the window or hyperlinking to a new site
as soon as possible
In order to practice servers with node.js and implement past weeks' learning, especially XMLHttpRequests, we need to create an application that frequently makes api requests to a server, sends back successful responses (whether full web pages, css, .js files or json data), and that is hosted on a web server.
We learnt a lot and had a great time working together! :sunny:
A couple of things that we found useful:
window.location.url gives you the url of the client (deployed on server/deployed on localhost)
encodeURI(url) provides a server-friendly url (useful for when search results have spaces or special characters)
querystring
querystring.parse (passes string and return objects)
querystring.stringify({ foo: 'bar', baz: ['qux', 'quux'], corge: '' });
// returns 'foo=bar&baz=qux&baz=quux&corge='