- ReactJS - to build the app
- NextJS - for preview and production deployment
- Vercel - for hosting the app
- Git and GitHub - for tracking, storage and version control
- I built the app based on the
Kahoot
website design: Link to website - I used feature branches and pull requests in this Project
- I worked documented and fixed bugs using GitHub Issues: Example Issues
-
I didn't use a state management library like Redux on purpose. For this app
useState
anduseReducer
hooks were sufficient. I realized that more and more projects don't use Redux anymore since GraphQL or react-query are often used for data management. -
UI libraries are a great place to find ready-made components that help speed up the dev process. They can also be handy if one only needs a few cusom components. For these reasons, I used
Styled-Componends
to create and style the buttons, inputs and cards used in this project. -
My plan is to become a FullStack Engineer eventually. This is why I chose to build a Custom RESTful API Server which can be found here. I built this API using the expressJS framework in NodeJS.
- The app has been setup and deployed on Vercel
Alternatively, you can do the following to setup the app locally. Run the commands below in your terminal or CMD:
1 Clone the repo using this command
git clone https://github.com/Dewalade1/20-questions-game-frontend.git
- Change directory to the repo folder
cd <path-to-repository>/20-questions-game-frontend
- Install the dependencies using npm
npm i
- See
Option 2
in theHow to start the app
section below to start the app
- The easiest way to start up the app is to click here
You can start the app locally or run it on a development environment using the following commands:
- Start app locally
npm start
- Run on a local dev environment
npm run dev
Most available scripts are NextJS built-in scripts but the most useful ones are:
- Start app
npm start
Open http://localhost:3000 in your browser to view it. The page will refresh if you make edits to the code. You will also see any compile and lint errors in the console.
- Start app using a dev environment
npm run dev
Open http://localhost:3000 in your browser to view it. The page will refresh if you make edits to the code. You will also see any compile and lint errors in the console.
- Check app for lint errors
npm run lint
- Build the app locally
npm run build