This project was bootstrapped with NextJS.
The website is made up of pages. Pages are divided into components. Reusable components are stored in the shared directory. Pages are connected to the store and can pass props down to needing components. We try to reduce number of connected components.
We use the pattern start => Success/Error for our async actions. All async actions has a corresponding reducer and selectors(if needed). We are not rigid on our pattern. We hope to be more disciplined.
The project is made up of interesting technologies like:
-
Redux: A predictable state for Javascript apps. We have used redux to hold our shareable state. You can find more here
-
Contentful: We are Fast and we launch products Fast. Contentful allows us to achieve this. Our contents are being managed by contentful. Read more on how to get started.
-
Redux-thunk: Since we are using redux to hold our app state, redux is design to handle synchronous actions by default. But we need to talk to systems outside our app. Redux-thunk will manage our async actions. It acts as a middleware that dispatches actions for us. Read more here
-
Styled-compomponent: We are gradually migrating to styled-components. We believe CSS-in-Js is the future, hence the migration. Find more here
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
Starts the project on port 3000