Skip to content

Instantly share code, notes, and snippets.

@digi0ps
Last active June 1, 2019 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digi0ps/0974a4fe2cd95134d1daa97726778951 to your computer and use it in GitHub Desktop.
Save digi0ps/0974a4fe2cd95134d1daa97726778951 to your computer and use it in GitHub Desktop.
Frontend Flow

Frontend Flow

/

/ is the default page or the home page.

It will be fetching these from the backend: - categories - popular-destinations

Navbar: Logo and Search Bar Footer: Copyright stuff

Navbar and Footbar are common across all pages.

/package/[package-id]/

will be an id, you will make a call to the backend to fetch details about the package and then display it.

/category/[category-id]/

Similarly for category.

/search/

Should pass the search term to the backend which searches and gives you the result which you should display...

Routing

All these are single page routing, which you can use React Router; Visit the website and learn about it first.

Setup

I will make an organisation first and add you guys. Then I will create a frontend repo with a custom webpack setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment