Nox-API is an open source Rest API, that handles all the heavy lifting a Minecraft server would typically need to do in the background.
- Chat Filtering
- Cache Basic Data (UUID, Name, Primary Rank, Last Login)
- More coming soon...
- Clone this repository
- The main branch is the most stable branch at any given time, ensure you're working from it.
- Run npm install to install all dependencies
- Setup your Redis Server/Database
- Create an
.env
file in your project root folder and add your variables. See.env.sample
for assistance.
- Run
npm run start
to start the application. - Connect to the API using Postman on port 3000.
HTTP Verbs | Endpoints | Action |
---|---|---|
POST | /api/chat/filter | filters a chat message |
POST | /api/login/ | update & save player data to the redis cache |
GET | /api/login/:uuid | get player data from the redis cache |
-
NodeJS This is a cross-platform runtime environment built on Chrome's V8 JavaScript engine used in running JavaScript codes on the server. It allows for installation and managing of dependencies and communication with databases.
-
ExpressJS This is a NodeJS web application framework.
-
Redis Redis is an advanced, open-source, in-memory data structure store used as a database, cache, and message broker.
-
TypeScript TypeScript is a statically typed superset of JavaScript, designed and maintained by Microsoft. It builds on JavaScript by adding optional static types, interfaces, and other features that enable developers to write more robust, scalable, and maintainable code.
This project is available for use under the MIT License.