2024-08-29 10:40:38 +05:00
# Beatrun Courses Database Server
2024-08-29 09:48:27 +05:00
Beatrun courses database written in JavaScript using [Node.js ](https://nodejs.org ).\
2025-01-05 14:46:02 +05:00
This project is a rewrite of this [fork ](https://github.com/JonnyBro/beatrun-courses-server ) from PHP to JavaScript. The original project was made by [relaxtakenotes ](https://github.com/relaxtakenotes/beatrun-courses-server ).
## Features
- Courses management.
- User authentication using Steam API.
- Admin dashboard.
- API for external integrations.
2024-08-29 09:48:27 +05:00
## Installation
2025-01-05 14:46:02 +05:00
To install the dependencies and start the server, run the following commands:
2024-08-29 09:48:27 +05:00
```bash
2024-12-06 23:46:27 +05:00
pnpm i
pnpm start
2024-08-29 09:48:27 +05:00
```
2025-01-05 14:46:02 +05:00
## Usage
### Routes
- /admin - Admin dashboard
- /api - API endpoints
- /auth - Authentication routes
- / - Main application routes
- /key - Keys management
- /stats - Statistics
- /upload - Courses uploads
### Views
- admin.ejs - Admin dashboard view
- error.ejs - Error page view
- index.ejs - Main page view
- key.ejs - Keys management view
- stats.ejs - Statistics view
## Configuration
Copy `config.example.js` to `config.js` and update the configuration as needed.
## Database
The main database file is located at `main_db.json` . An example database file is provided at `main_db.example.json` .
## Logging
Logs are stored in `logs.log` .
## Contributing
Feel free to submit issues and pull requests. For major changes, please open an issue first to discuss what you would like to change.
## License
This project is licensed under the MIT License - see the LICENSE file for details.
2024-08-29 09:48:27 +05:00
## TODO
2025-01-05 14:46:02 +05:00
- [ ] Add something else?