Api for webpage and mudlet (mud client) using by one of https://arkadia.rpg.pl guild.
Dual language API.
Github: https://github.com/airfortech/alderazzi-frontend
Live test server: https://ra-test.airm.ct8.pl/
Password for all roles:
test1234
mongoose https://www.npmjs.com/package/mongoose
bcrypt.js https://www.npmjs.com/package/bcryptjs
cookie-parser https://www.npmjs.com/package/cookie-parser
jsonwebtoken https://www.npmjs.com/package/jsonwebtoken
node-cron https://www.npmjs.com/package/node-cron
lorem-ipsum https://www.npmjs.com/package/lorem-ipsum
dayjs https://www.npmjs.com/package/dayjs
express-async-errors https://www.npmjs.com/package/express-async-errors
.
├── app.ts
├── backups
├── config
├── controllers
│ ├── auth
│ ├── backups
│ ├── enemies
│ ├── keyGiverDrops
│ ├── keyGivers
│ ├── keys
│ ├── locations
│ ├── privileges
│ ├── settings
│ └── users
├── data
├── db
│ ├── models
│ ├── mongoose.ts
│ ├── tools
│ │ ├── backupDb
│ │ ├── createDb
│ │ ├── createInitialSettings.ts
│ │ ├── getSettings.ts
│ │ └── saveEnemiesToFile.ts
│ └── validators
├── routes
├── tests
├── todo.txt
├── types
│ └── translations
└── utils
npm install
npm run db:create-db
creates fake data for testing
npm run db:create-users
creates roles and set passwords
npm run start:watch
development mode
npm run testing:deploy
deploys app to test server
testing:reset-database
resets testing database. Database resets one time per week on test server
testing:create-users
creates roles and passwords. Passwords are set to default one time per week.
Endpoints in *.http
files in ./tests
folder