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.
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.
There are 3 configuration types (configuration, chest rewards, and quests).
var configuration = {
port: 8000,
datapath: "/data"
}
For configuration has two subject (port, datapath)
port:
is for webserver of port that will use8000
, you can change it to port 80 or above.datapath:
is for data save to/data
(database, levels, accounts, caches, songs).
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 questamount:
is for collect amount of type'srewards:
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.
This repository is still in development; you can read at task.txt. Some functions may have bugs and errors!