Skip to content

Instantly share code, notes, and snippets.

View geekysam7's full-sized avatar
🎯
Focusing

Sameer geekysam7

🎯
Focusing
View GitHub Profile
@geekysam7
geekysam7 / API Contract Example Spec.md
Last active February 17, 2022 15:35 — forked from BeattieM/API Contract Example Spec.md
An example of an API contract between the server and front-end devices

Users

  • User object
{
  id: integer
  username: string
  email: string
  created_at: datetime(iso 8601)
  updated_at: datetime(iso 8601)
}
@geekysam7
geekysam7 / gist:384b853fa05a6aabd8e559ffa42298f3
Created May 28, 2020 01:39 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:

🌟 Setting Up Routing 🌟

SPA

The idea behind a single page application is a single HTML file. We want to show the user different pages for different paths.
This is possible by using a router package through which we can render different pages for different paths.

Router Package

It does 3 main things:

  • Parses URL/Path
  • Read config: which path are supported and what happens if user visists it.
  • Render/Load appropriate JSX/Component.

Installation