Skip to content

airfortech/ra-panel-backend

Repository files navigation

Alderazzi Backend Api

Api for webpage and mudlet (mud client) using by one of https://arkadia.rpg.pl guild.

Dual language API.


Alderazzi Frontend Resources

Github: https://github.com/airfortech/alderazzi-frontend

Live test server: https://ra-test.airm.ct8.pl/

Password for all roles:

test1234

Tech Stack

NodeJS Express.js MongoDB TypeScript GitHub Actions


Additional Main Packages

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


Project Structure

.
├── 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

Install Packages

npm install

Configure Project

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


Tools

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.


API Endpoints

Endpoints in *.http files in ./tests folder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published