Mitgliederverwaltung
src | ||
.env.example | ||
.gitignore | ||
.prettierrc | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json |
member-administration-server
Memberadministration
Authentications is realized via JWT-Tokens. The server is able to send Mails to the members. Login is possible via Username and TOTP.
Installation
Requirements
- MySql Database
- Access to the internet for sending Mails
Configuration
- Copy the .env.example file to .env and fill in the required information
- Create a new Database in MySql named as in the .env file
- Install all packages via
npm install
- Start the application to create the database schema
Testing
- Install the database-system-package you like (e.g. mysql, mariadb, postgresql, sqlite3)
- Configure type inside src/data-source.ts to run the database-system you like.
- Set migrationsRun to false and synchronize to true for rapid prototyping
- Building the schema via CLI:
- Run
npm run update-database
to build the schema using the migrations without starting the application - Run
npm run synchronize-database
to build the schema without using migrations without starting the application
- Run
- Run
npm run dev
to run inside dev-environment (runs migrations if migrationsRun is set to true)