Dominic C
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # D A A M ## Message for our reviewers! * No working product yet (but we're not too far) * Sadly this means you'll probably just need to dig into the code for now * No API keys/.envs needed as the APIs we've used are all open ## Goals [Project overview](https://github.com/foundersandcoders/master-reference/blob/master/coursebook/week-5/project.md) ## REMINDERS! * Make issues for "to do"s * Commit with "> relates #[issue number]" ## To do: * Server.js : Test Server.js (Dom & Armand) * Make server * Tests for server function * Add travis! ## Done: * Install eslint, tape, tap-spec, nodemon, supertest ## From the doc: ### Goals: [ ] Use at least 1 API [ ] Make your API calls from the back-end using the Request module (or one you build yourself) [ ] Your server should contain a minimum of 2 routes [ ] We expect back-end testing using Tape (test as many components as you can) and basic front-end testing. [ ] Test your server by injecting fake HTTP requests using Supertest (consider testing for 404's and 500's). [ ] Host your project on Heroku, see resources [ ] Use module.exports and require to break a single large server file into smaller modules. [ ] Consider a good server file structure based on what we have discussed over the week. [ ] Employ continuous intergration on your project with Travis or a similar tool. (If you decide to use Travis, we strongly recommend that you host this project in your own repo rather than in your cohort's FAC repository to avoid all builds getting queued together) [ ] Use CodeCov or a similar tool for test coverage. [ ] Include Error Handling. For example: * if a user attempts to make a request to a non-existent route to your server (404 - as mentioned above), provide the user with a custom response. * if there is a programmer error on your server (e.g. a handler function does not act as intended, or receives a datatype it is not expecting), provide the user with a custom response (500 status code). [ ] Include a user input field on your web app and include server-side validation to protect your server from potentially malicious user input. ### Stretch goal: Create a route and functionality for a POST request. [ ] Display continuous intergration and code coverage badges on your project README. ### Example (real) object that the front end will need to handle! ``` { "crimes": { "anti-social-behaviour": 663, "bicycle-theft": 82, "burglary": 176, "criminal-damage-arson": 103, "drugs": 77, "other-theft": 831, "possession-of-weapons": 24, "public-order": 213, "robbery": 124, "shoplifting": 239, "theft-from-the-person": 660, "vehicle-crime": 86, "violent-crime": 600, "other-crime": 23 }, "streets": { "Bourchier Street": 27, "Theatre/concert Hall": 176, "Embankment Place": 3, "Arne Street": 10, "Westminster Bridge Road": 30, "Bow Street": 7, "Russell Street": 5, "Tavistock Street": 6, "Drury Lane": 15, "Wild Street": 5, "Catherine Street": 6, "Conference/exhibition Centre": 24, "Kean Street": 10, "Grosvenor Place": 2, "Trebeck Street": 2, "Grosvenor Gardens Mews East": 1, "Berkeley Square": 2, "Bourdon Place": 2, "Grosvenor Gardens": 3, "Fitzmaurice Place": 4, "Lower Grosvenor Place": 1, "Lansdowne Row": 5, "Terminus Place": 13, "Constitution Hill": 1, "Bloomfield Place": 7, "Hay Hill": 7, "Shopping Area": 186, "Mayfair Place": 3, "Albemarle Street": 3, "Pollen Street": 8, "Mason's Arms Mews": 7, "Little Argyll Street": 26, "Race Track": 14, "Guildhouse Street": 1, "Gillingham Street": 1, "Parking Area": 88, "Ashley Place": 10, "Old Bond Street": 5, "Arlington Street": 4, "Nightclub": 421, "New Burlington Street": 2, "Argyll Street": 6, "Wilton Road": 7, "Carlisle Place": 1, "Regent Street": 34, "St James's Place": 1, "Burlington Gardens": 4, "Longmoore Street": 2, "Tachbrook Mews": 1, "Further/higher Educational Building": 69, "Ambrosden Avenue": 2, "Newburgh Street": 6, "Great Marlborough Street": 8, "Ganton Street": 23, "Albany Courtyard": 2, "Churton Street": 3, "Willow Place": 5, "Marshall Street": 6, "Lower John Street": 7, "Francis Street": 17, "Masons Yard": 1, "Poland Street": 6, "Pall Mall Place": 3, "Richmond Buildings": 4, "Police Station": 57, "Winnett Street": 11, "Chapone Place": 5, "Motorway Service Area": 14, "Garden Terrace": 2, "Soho Street": 14, "Lambeth High Street": 4, "Vauxhall Walk": 2, "Victoria Embankment": 6, "Lambeth Palace Road": 1, "Juxon Street": 3, "Waterloo Road": 27, "Lambeth Walk": 7, "Addington Street": 4, "York Road": 17, "Pedestrian Subway": 54, "Winsley Street": 15, "Rathbone Place": 11, "Hanway Place": 14, "Lilac Place": 3, "Kennington Road": 9, "Morton Place": 4, "Murphy Street": 4, "Launcelot Street": 2, "Spur Road": 2, "Pear Place": 9, "Stamford Street": 7, "Sandell Street": 9, "Sports/recreation Area": 12, "Greenham Close": 1, "Duchy Street": 2, "Gerridge Street": 1, "Webber Row": 7, "Greet Street": 3, "Sidford Place": 1, "Salamanca Place": 5, "Barge House Street": 7, "Fleet Street": 10, "Middle Temple Lane": 2, "Theme/adventure Park": 28, "Aldwych": 6, "Villiers Street": 8, "Kingsway": 8, "Shelton Street": 13, "Cleveland Place": 6, "Jermyn Street": 2, "Livonia Street": 4, "Hatherley Street": 2, "Hospital": 24, "Lower James Street": 7, "Greencoat Place": 1, "Dyott Street": 7, "West Street": 7, "Noel Street": 4, "New Oxford Street": 18, "Ingestre Place": 7, "Brewer Street": 2, "Berwick Street": 3, "Hopkins Street": 6, "Derby Gate": 9, "Babmaes Street": 4, "Wardour Street": 11, "Rochester Row": 3, "Tachbrook Street": 6, "Broadwick Street": 10, "Glasshouse Street": 7, "Remnant Street": 3, "Blackfriars Road": 7, "Denman Street": 14, "Piccadilly Circus": 5, "Sheraton Street": 2, "Boundary Row": 3, "Peter Street": 6, "Great Queen Street": 14, "Parker Mews": 4, "Artillery Row": 8, "Supermarket": 121, "Carlisle Street": 8, "Endell Street": 16, "Nottingham Court": 13, "Marlborough Road": 1, "St James's Market": 3, "Shaftesbury Avenue": 44, "Rampayne Street": 5, "Hide Place": 2, "Manette Street": 5, "Dartmouth Street": 1, "Vincent Street": 1, "Romilly Street": 17, "Museum Street": 5, "Monck Street": 7, "Page Street": 4, "Moor Street": 24, "Buckingham Gate": 4, "Orange Street": 14, "Shorts Gardens": 1, "Willoughby Street": 3, "Cockspur Street": 8, "Pall Mall East": 1, "Charing Cross Road": 40, "Great Peter Street": 6, "St Giles High Street": 5, "Litchfield Street": 2, "Great George Street": 6, "St Giles Passage": 3, "Earnshaw Street": 4, "Ponsonby Terrace": 4, "Marsham Street": 8, "Duncannon Street": 15, "Upper St Martin's Lane": 7, "Cranbourn Street": 13, "Phoenix Street": 2, "Falconberg Mews": 33, "Craig's Court": 24, "St Martin's Lane": 6, "Downing Street": 14, "Lord North Street": 1, "Canon Row": 19, "Denmark Street": 6, "Bridge Street": 35, "Northumberland Street": 11, "Rupert Street": 11, "Douglas Street": 1, "Regency Street": 2, "Carey Place": 6, "Frith Street": 17, "Tothill Street": 2, "Abbey Orchard Street": 1, "Medway Street": 3, "Arneway Street": 4, "New Row": 2, "Adelaide Street": 16, "William Iv Street": 3, "Scotland Place": 3, "Craven Street": 5, "Whitehall Place": 2, "Long Acre": 8, "Bedford Street": 7, "Buckingham Street": 1, "John Adam Street": 2, "Victoria Square": 6, "John Islip Street": 5, "Waterloo (london) (station)": 51, "Chicheley Street": 6, "Pearman Street": 1, "Melbourne Place": 4, "St James's Street": 1, "Ryder Yard": 4, "Tottenham Court Road": 7, "Rose And Crown Yard": 2, "Upper Ground": 6, "Queen Street": 4, "Warwick Street": 12, "Gillingham Row": 5, "Warwick Way": 5, "Heddon Street": 1, "A301": 11, "Smart's Place": 3, "Broadwall": 11, "Howick Place": 4, "Baron's Place": 8, "Vigo Street": 12, "Wild Court": 9, "Suffolk Place": 3, "Carey Street": 1, "Haymarket": 2, "Great Pulteney Street": 2, "Meard Street": 5, "Grape Street": 1, "Savoy Court": 7, "Hay's Mews": 3, "Old Compton Street": 14, "Secker Street": 4, "Langley Street": 2, "Waterloo Place": 2, "Denbigh Mews": 3, "Brick Street": 8, "Strand": 12, "Dryden Street": 3, "Portland Mews": 6, "Cooper Close": 1, "Lexington Street": 2, "Upper James Street": 3, "Lollard Street": 2, "Coptic Street": 4, "Chadwick Street": 2, "St Ann's Street": 2, "Vandon Street": 3, "West Central Street": 1, "Bolton Street": 2, "New Compton Street": 2, "Great Newport Street": 9, "Exton Street": 1, "Bridle Lane": 2, "Greek Street": 2, "Maunsel Street": 1, "Walnut Tree Walk": 3, "Smith's Court": 10, "St George Street": 3, "Morley Street": 3, "Victoria Lu Station (lu Station)": 128, "Short Street": 3, "Savoy Row": 3, "Vane Street": 1, "Great Chapel Street": 3, "Berners Place": 10, "Tanswell Street": 7, "Stafford Street": 3, "Piccadilly": 6, "Coral Street": 5, "Hollen Street": 19, "Upper Tachbrook Street": 3, "Panton Street": 1, "Richmond Mews": 1, "D'arblay Street": 2, "Thirleby Road": 1, "Blue Ball Yard": 1, "Oxendon Street": 4, "Bucknall Street": 3, "Carrington Street": 13, "Little Marlborough Street": 10, "Essex Street": 1, "Charlwood Street": 2, "Walcott Street": 1, "Bruton Lane": 4, "Charing Cross (station)": 14, "The Cut": 4, "Cleveland Row": 2, "Adam Street": 2, "Caxton Street": 2, "Whitehall Court": 6, "King Edward Walk": 5, "Drummond Gate": 7, "Cureton Street": 1, "Dansey Place": 11, "Valentine Place": 4, "Gibson Road": 1, "Upper Marsh": 3, "Old Pye Street": 2, "Chesterfield Gardens": 1, "Old Queen Street": 5, "Carlton Gardens": 2, "Hamilton Mews": 1, "Perkin's Rents": 5, "Archer Street": 4, "Stafford Place": 9, "Ferry Terminal": 2, "Dufour's Place": 3, "Stacey Street": 1, "Macklin Street": 3, "Pratt Walk": 1, "Sutton Row": 4, "Green Park (lu Station)": 24, "Hatfields": 3, "Ramillies Place": 14, "Carlton Street": 7, "Ramillies Street": 19, "Grindal Street": 2, "James Street": 7, "Hop Gardens": 2, "Agar Street": 2, "Little College Street": 3, "Shepherd Market": 6, "Victoria Street": 13, "Little Newport Street": 18, "Waterloo (east) (station)": 2, "Swallow Street": 4, "Rose Street": 4, "Baylis Road": 1, "Coventry Street": 26, "Newnham Terrace": 8, "Hanway Street": 20, "Earlham Street": 1, "Meymott Street": 3, "Kingly Street": 11, "Southampton Street": 5, "Cockspur Court": 2, "Kemble Street": 3, "Crown Passage": 3, "Duck Lane": 8, "Covent Garden (lu Station)": 7, "Dover Yard": 1, "Embankment (lu Station)": 7, "Monmouth Street": 4, "Leicester Square (lu Station)": 11, "Johanna Street": 1, "Ormond Yard": 2, "Bloomsbury Street": 2, "Piccadilly Circus (lu Station)": 9, "St James's Park (gt London) (lu Station)": 7, "Tottenham Court Road (lu Station)": 11, "Shepherd Street": 5, "Mill Street": 7, "Albert Embankment": 3, "Foubert's Place": 4, "Waterloo (lu Station)": 17, "Westminster (lu Station)": 14, "Maiden Lane": 3, "Mead Row": 2, "Farm Street": 2, "Paris Garden": 1, "Eaton Row": 1, "Strutton Ground": 5, "Buckingham Palace Road": 6, "Houghton Street": 1, "Floral Street": 7, "Milford Lane": 2, "Dean Farrar Street": 4, "Clarges Mews": 1, "Lower Belgrave Street": 5, "Betterton Street": 1, "Air Street": 8, "King's Scholars' Passage": 1, "Chester Close": 1, "Bus/coach Station": 11, "Osbert Street": 5, "Norris Street": 1, "Beak Street": 6, "Cork Street": 1, "Slingsby Place": 3, "Wellington Street": 1, "Whitcomb Street": 7, "Spenser Street": 4, "Wardour Mews": 3, "Wilfred Street": 1, "Wilton Street": 1, "Abingdon Street": 1, "Warwick Row": 3, "Greencoat Row": 3, "Coach And Horses Yard": 4, "Derby Street": 1, "Vauxhall Bridge Road": 3, "Dean Stanley Street": 1, "Dacre Street": 1, "Southwark (lu Station)": 4, "Pall Mall": 2, "Belgrave Road": 1, "Lisle Street": 7, "Durham House Street": 4, "Gerrard Place": 4, "Dean Bradley Street": 2, "Tower Street": 2, "Black Prince Road": 3, "Bressenden Place": 2, "Garrick Street": 1, "Clarges Street": 1, "Little Essex Street": 1, "Mercer Street": 5, "Cork St Mews": 1, "Rochester Street": 3, "Lower Marsh": 2, "Corner House Street": 3, "Brook Drive": 1, "Newport Place": 5, "St Ermin's Hill": 1, "Henrietta Street": 1, "Greycoat Place": 2, "Mcauley Close": 1, "Goslett Yard": 1, "The Sanctuary": 2, "Dodson Street": 2, "Savoy Street": 1, "Warwick Square": 1, "Clifford Street": 1, "Bateman Street": 1, "Streatham Street": 4, "Charing Cross (lu Station)": 1, "Temple (lu Station)": 2, "Horseferry Road": 2, "Stedham Place": 1, "Barlow Place": 1, "Bourdon Street": 1, "Hertford Street": 1, "Charles Ii Street": 4, "Herrick Street": 1, "Palace Place": 1, "Randall Road": 1, "Golden Square": 1, "Exeter Street": 1, "Sheffield Street": 2, "Burrows Mews": 1, "Brad Street": 2, "Causton Street": 2, "Bedlam Mews": 3, "Rutherford Street": 1, "Cornwall Road": 1, "Stoughton Close": 2, "Coburg Close": 1, "Stanford Street": 2, "Aquinas Street": 1, "Petty France": 1, "Colombo Street": 2, "Churton Place": 1, "Cons Street": 1, "Roupell Street": 1, "St Matthew Street": 1, "Norfolk Row": 1 } } ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully