In your command-line run the command: brew update
- In your command-line run the command:
brew install postgresql
In your command-line run the command: brew update
brew install postgresql
###Business Objective Good morning team! We just got a request from the new CMG(Chief Marketing Groovru) that he wants to start A/B testing every element across the entire site for user interaction. We are going to need you to create a script that can be included in an HTML page that tracks every click on a page and reports what element was clicked so that we know at a micro level how users are interacting with our new optimized, user-friendly, uber-engagement platform.
###Your Task Mock up a simple HTML page with a bunch of different elements on the page and create a script that tracks every single element clicked and the number of times it was clicked. We will worry about saving this to our analytics database later, we just need a way to prove that it works.
Thaaannnks :D
Creating an Express server (don't auto-generate). Add routes based on the specs provided below. Some routes have additional requirements for features.
Test your server's routes with an application like POSTMAN or with the curl command from the terminal.
Code | Message | Description |
---|---|---|
100 | Continue | The server has received the request headers, and the client should proceed to send the request body |
101 | Switching Protocols | The requester has asked the server to switch protocols |
103 | Checkpoint | Used in the resumable requests proposal to resume aborted PUT or POST requests |
Code | Message | Description |
---|
One of your clients have contacted you with a problem. Their Users have figured out that their chat messages aren't filtered and they can say anything that they want. The CEO dislikes the slang terms being used on the internet and wants to implement a system which will remove certain words and replace them.
Your task is to build middleware for Express which will search through a message's contents and replace certain words with ones that are more, family-friendly. You have been given a set of words to which have been blacklisted.
You will build a small project which will test your middleware.
The pitches have completed. You and your team have decided on the technologies and the tech lead has already begun hacking away. The Biz Dev approaches you and whispers two words, "User Acquisition". You can already feel the pressure...
Hey so like, we need to go out to the Night Market and start polling for opinions on our service. I already bought the domain and so I just need you to build the sign-up form so we can gather emails. Should be easy right? Cool. Oh, I need this done ASAP because I'm leaving for the market now. Thaaaaaanks :D
You have been tasked to build the landing page which will have a Sign Up Form. User's will visit the page, be asked to enter their first and last name, and email address. Then the User will be presented with a thank you message. You must use ExpressJS, implement some basic validations on the data coming in, and do this quick!
Your Form will POST data to your '/signup'
endpoint. No XHR will be used.
###Email Hell
We just found out that there is a bug in production that our e-mail function was iterating errantly and sending duplicate e-mails to many users. We need to fix this quickly but we don't want to send out a mass apology letter to all of our users.
Our sysadmin gave us the SMTP logs and we need to process the logs and identify which users received multiple e-mails so that we can directly send them a follow up e-mail explaining the situation and offer super cool swag to keep them on as customers.
Also, the boss wants this done ASAP, we don't have time to do this manually...HAAALLLLPPP!
###The Fix