- Project Overview
- Project Aim
- Diagrams
- Tech Stack
- Set Up Instructions
- Future
Our project involved creating a React front-end application that provides a user-friendly interface for one of the server-side APIs developed by another backend group during week 6 of the bootcamp.
This project was bootstrapped with Create React App.
- To create a guessing with the following practicality:
- Login/Register an account
- Single player or multiplayer option
- Client having the option to choose the game mode (Easy/Difficult
- Loserboard which displays all players who have completed the game
- A leader play can be able include addition 3 players
- A coin toss when in single player mode
- A single player being able to save and access their existing the game
- JavaScript
- HTML
- CSS
- React.js (+ React Router Dom and Multiselect library
The server side api can be found here: https://github.com/thibyaa/Backend_TwentyOne_API
-
Software needed to run the API:
- IntelliJ and Java (version 17)
- Postman
- Postico
- PostgreSQL
-
Installation instructions:
- Git clone from the server side API Repo
- Create an SQL database and name it
Backend_TwentyOne_APIso that it matches with the name in theapplication.propertiesfile (src of server side API) - Once your database has been created, run the
BackendTwentyOneApiApplication.javafile in IntelliJ to get started. - You can set up your tests using Postman on
localhost:8080/{extension}or type inlocalhost:8080/gamesin your browser, for example, to see the games data. More details can be found from the backend repo
The client-side server can be obtained with the following information:
-
Ensure that the following software has been downloaded:
- Visual Studio Code
-
To create a fork of a repository on GitHub, go to the repository's page and click on the "Fork" button located in the top-right corner. This action will make a copy of the repository under your GitHub account, allowing you to freely make modifications without altering the original project. Fill out any required details, such as the repository name, and then click "Create fork" to complete the process.
-
To clone the forked repository, click on the "Code" button at the top of the repository page, select SSH, and copy the provided link. In your terminal, navigate to the desired working directory and use the command "git clone" followed by the copied URL to create a local copy of the repository. Example:
git clone git@github.com:{YOUR-USERNAME}/client_side_project.git -
To install the necessary node modules, open your terminal in the "frontend_shop_project_client/src" directory within Visual Studio Code and run the command "npm install" or "npm i".
- Once you have installed all the necessary applications and dependencies for this project, run the Backend server API via Intellij IDEA and on port 8080.
- To start the application in Visual Studio Code, use the command npm start in the terminal. This will automatically open the app in your default browser. If it doesn't open automatically, manually access it by navigating to http://localhost:3000 on a preferred web browser.
To navigate between pages on the React app, we configured the following routes using the React Router:
-
Landing Page: http://localhost:3000
-
LogIn Page: http://localhost:3000/logIn
-
Single Player Page: http://localhost:3000/singlePlayer
-
Multiplayer Page: http://localhost:3000/multiPlayer
-
Game Page: http://localhost:3000/gamePage
Note: Depending on what game mode is selected, you will be taken to a single or multiplayer game page.
- Log In Container to be turned into change into a modal (additional library)
- Players to be able to choose avatars
- Deployment of website
- GitHub: Zaynah Sadiq
- GitHub: Stella Annor
- GitHub: Fiona Eshun
- GitHub: Thibyaa Mahasivam

