GoalHero is a gaming and lifestyle mobile application.
GoalHero inspires users to set goals for themselves to achieve. When a user signs up for an account, they are given a hero character. They can use their hero to fight against a monster. They start off weak against a monster, so they need to level up to increase their damage. A user can level up their hero by completing goals they set for themselves such as finishing a project, or running every day for a week. After a user uses their hero to defeat a monster, they will unlock a stronger hero.
After opening the application, either log in or sign up for a GoalHero account. Next, go to the GOALS page to start setting goals for yourself. You can set up to five goals for yourself at a time. You can then either choose to complete the goal, or remove it. Completing a goal will then level up your hero. Your hero starts at level 1. Each increase in level makes the hero stronger as they fight against a monster.
You can also go into the HERO PROFILE page. This is where you see information for you as a user and your hero. Your user information will display your name and your current level. You hero information will show what hero you currently have and what is their current damage and health stats. To look at the different heroes, you can go to the HEROES page. This shows a list of all possible heroes. All heroes, except for the knight, will start off locked. Every time you defeat a monster, you will unlock another hero. You can then go to this page to select between any hero you unlocked.
Lastly, you can go the PLAY page. Here is where you can play as your hero and attack a monster. You can move your hero left and right by tapping anywhere on the left or right side of the screen. You can make your hero jump by tapping on the top of the screen. You can attack the monster by tapping on the attack button on the lower right corner of the screen.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
GoalHero runs in a Node environment and requires a postgreSQL database named “goalHero”. You’ll also need to create a database for testing called “goalHero-testing.”
Fork and/or clone this repository to create your own local copy and follow the instructions below.
Install dependencies for the project with
npm install
And run the seed file with
npm run seed
GoalHero is deployed on Heroku, and can be seen using Expo. Run expo using
expo start
Once that is running, you can either open up the app using a simulator on your machine, or on your mobile device. To view the app on your mobile device, download the app Expo Client. You can then scan the QR code to view it on your phone.
Technology | Description |
---|---|
React | Used to build main components |
React-Redux | Used to store state |
React Native | Used to build main components for mobile development |
React Native Game Engine | Used to create the game play |
Matter.js | Used to add physics into game |
Expo.io | Tool to build a mobile application |
Node.js | Runtime environment and npm package manager |
Express | The web framework used |
PostgreSQL | Relational database |
Sequelize | promise-based ORM |