Skip to content

A GDPS that uses Javascript, Express, Sqlite3 & more!

Notifications You must be signed in to change notification settings

RXNationGMG/gdps-node-stable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gdps-node

GDPS based on gdps cvolton (php), this gdps also based on js language. also database use sqlite3 which means can fast, secure than mysql, etc.

How to use

Simply start with this code.

$ npm i
$ node .

And the server will host port 8000 by default. If you see OK on http://localhost:8000, you are ready to use. Oh yes, I forgot that the GD server should be on /database and will return to -1 as a 404 not found.

Configuration setup

There are 3 configuration types (configuration, chest rewards, and quests).

Configuration:

var configuration = {
  port: 8000,
  datapath: "/data"
}

For configuration has two subject (port, datapath)

  • port: is for webserver of port that will use 8000, you can change it to port 80 or above.
  • datapath: is for data save to /data (database, levels, accounts, caches, songs).

Quests:

var quests = [{
  type: 1,
  name: "Collect orbs",
  amount: 1000,
  rewards: 10
}]

For quests has 4 subjects (type, name, amount, rewards)

  • type: is for that you need to collect to:
1 - orbs
2 - coins
3 - stars
  • name: is for title or name of the quest
  • amount: is for collect amount of type's
  • rewards: is for rewards amount of diamonds

so means of that quests configuration is

Collect 1000 amount of orbs, and you will get 10 diamonds as rewards. 

Warning

This repository is still in development; you can read at task.txt. Some functions may have bugs and errors!

About

A GDPS that uses Javascript, Express, Sqlite3 & more!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%