Giter Site home page Giter Site logo

pth3231 / lonelywolf Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9.1 MB

We are creating a game that helps players feel a lot more motivated in walking and running, by letting them freely do their tasks, join guilds, combat with bosses, collect wonderful treasures and trade them with other aspired players.

Home Page: https://lonelywolf.vercel.app

HTML 1.48% JavaScript 86.80% CSS 11.72%
game indieweb health tasks

lonelywolf's Introduction

Welcome, lonelywolf!

Setup

First, if you are a developer or a user who want to investigate about our web application, you have to install Node.js runtime on your machine.

If you want to clone the repository, you need to clone the app using git clone like the following code:

git clone https://github.com/pth3231/lonelywolf.git
cd lonelywolf

or you can download the .ZIP package in this repository.

Next, you have to install Microsoft SQL Server running as a service on your machine, or you can simply use Microsoft Azure and set up a new SQL Server Instance. You can read the following documentation from Microsoft for further detailed information about setting up a new database, or Microsoft Azure SQL Database documentation to have more insights about Cloud platforms.

Run Frontend

After setting up the web app, you have to be in the lonelywolf folder, then use

npm start

to run the web on http://localhost:3000/

Run Backend

After being in lonelywolf, you can use the following syntax (in the new console, in different process) to run your server

// if you want to use nodemon
npx nodemon server.js

// or if you just want to use the ordinary one
node server.js

APIs Configuration

lonelywolf-backend API

In lonelywolf/src/config.json, we can modify some of these keys in order to set up a suitable environment:

{
    // URL of your API
    "api_url": string
}

Inside lonelywolf-backend/routes/, we also have the same JSON file named config.json:

{
    // This is a secret encrypted sequence of characters, which will be used for JWT
    "secret": string,
    // This is the client_id inside Google APIs Console
    "client_id": string,
    // This is the client_secret inside Google APIs Console
    "client_secret": string,
    // URL to your API
    "api_url": string
}

Dependencies

  • React
    • axios
    • universial-cookie
    • hooks (useState, useEffect, useNavigate)
    • react-router-dom
    • zustand
    • use-Sound
    • chart.js
    • react-chartjs-2
  • Express
    • express-session (replaced by jsonwebtoken)
    • mssql
    • cors
    • body-parser
    • cookie-parser
    • universial-cookie
    • dotenv
    • express.router
    • nodemon
  • Microsoft SQL Server (under platforms of Microsoft Azure)
  • TailwindCSS

Author

  • Phan Thai Hoa (Developer, Engineer)
  • Nguyen Quang Minh (Leader, Content Manager)
  • Nguyen Ngoc Gia Bao (Designer)
  • Pham Ngoc (Designer)

lonelywolf's People

Contributors

pth3231 avatar

Stargazers

 avatar

Watchers

 avatar

lonelywolf's Issues

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.