Website and Backend for Ability Arena
- Node.js and npm
- PostgreSQL
- Redis (optional)
TODO
init.sql will initialize the postgres database
- Create
config/keys.js
and fill it with your PostgreSQL server settings as well as some empty strings for all the private keys you shouldn't have/use. Below is all the keys required to get the server running.
module.exports = {
sql: {
dev: {
user: "postgres",
host: "localhost",
database: "aadev",
password: "totallyNotPassword",
port: 5432,
},
},
patreon: {
oauth: {
clientID: "",
},
},
paypal: {
dev: {
clientID: "",
},
},
stripe: {
dev: {
secret: "",
},
},
sessionKey: "notsosecret",
};
- (optional) Disable redis by creating a
.env
file in the root and adding a line with the following:no_redis=true
npm install
at rootnpm install
in /clientnpm run dev
to launch