Coder Social home page Coder Social logo

whilekofman / aviquest Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 14.4 MB

Aviquest is a gamified task managing system that allows users to create their own tasks built on the MERN stack

Home Page: https://aviquest.herokuapp.com/

HTML 0.31% JavaScript 77.96% CSS 21.72% Procfile 0.02%
css3 expressjs html5 mongodb mongoose nodejs react redux

aviquest's Introduction

Aviquest

Background

Aviquest is a gamified task manager application that allows users to create their own real life tasks and complete them to receive rewards. Every user will start off with an Avitar character that they can be customized and embark on quests. With each task that the user completes, they can progress and complete quest to earn rewards that can be used to purchase weapons and equipment. The application aims to incentivize users for completing tedious chores and mundane tasks to help them complete tasks and build good habits.

Technologies

  • MongoDB - NoSQL database management program that uses JSON-like documents with optional schemas.
  • Express - Backend web application for building RESTful APIs with Node.js.
  • React - Open source frontend library.
  • Node.js - Open source backend JavaScript runtime environment.
  • Amazon Simple Storage Service (Amazon S3) is an object storage service cloud service.

Add/Delete a Task

User can add a task they would like to complete and specify difficulty in the edit section. User may also delete any tasks.

Equip/Unequip an Item

User can equip an item to strengthen their character and unequip an item. If the equipment slots are full, the first item will be returned to the inventory. Clicking an equipped item will return it to the inventory.

Gacha Reward System

gacha-cut

User can use gold from quest completion to spend in the Gachapon Reward system. An item is randomly selected and distributed to the user's inventory.

Code Snippets

Inventory

    const equipItem = () => {
        let index;
        if (equipment.length < 4) {
            index = items.indexOf(item);
            items.splice(index, 1);
            equipment.push(item);
        } else {
            items.push(equipment[0]);
            equipment.shift();
            index = items.indexOf(item);
            items.splice(index,1);
            equipment.push(item);
        }
        dispatch(updateUser({
            equipment,
            items,
            _id
        }));
    }

Gacha Reward System

    useEffect(() => {
        if (moving) {
            setItemData(itemList[index]);
            const count = setInterval(() => {
                setIndex(Math.floor(Math.random() * itemList.length))
            },60);
            return () => {
                clearInterval(count);
            };
        } else if (!moving && reward && itemList[index] && items.length < 24){
            newItems.push(itemList[index])
            dispatch(updateUser({
                _id,
                coins: coins -50,
                items:newItems,
            }))
        } else {
            return;
        }
    },[index,moving]);

Future Directions

  • Implement a shop system Implement gachapon reward system
  • Implement regenerating daily action points

aviquest's People

Contributors

hannnmc avatar wichen42 avatar whilekofman avatar dli53 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

wichen42 hannnmc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.