Find the production server at: https://alabastraapp.herokuapp.com/
This is the HQ of The Legends of Alabastra MUD Build Weeks Team. Where all the magic happens ;)
- Django was the Web framework used for rapid, secure, and clean design for the backend.
- Python was the programming language used to write the backend.
- PostgreSQL was implemented as the preferred choice for the database.
- Pusher was utilized to make server calls to the front end, so player's can receive real time feedback from other player's in the game.
POST: https://alabastraapp.herokuapp.com/api/auth/register
Column | Type | Required | Unique |
---|---|---|---|
username | str | yes | |
str | yes | unique | |
password | str | yes |
POST: https://alabastraapp.herokuapp.com/api/auth/login
When posted, it creates a session in the backend, and returns a token for the front end.
Column | Type | Required | Unique |
---|---|---|---|
username | str | yes | |
password | str | yes |
GET: https://alabastraapp.herokuapp.com/api/auth/logout
Logs the user out of the backend session (remember to clear the cookie/local storage if you set the token there).
GET: https://alabastraapp.herokuapp.com/map/
Return's the map's data for the front end to generate the player's map.
GET: https://alabastraapp.herokuapp.com/api/merchant/
This returns the merchant's inventory for players to buy weapons or trade gold for gems.
GET: https://alabastraapp.herokuapp.com/api/getItems/
This returns every item in the databases' location on the map.
POST: https://alabastraapp.herokuapp.com/api/items/
The requirements are to send that player's current x and y coordinates to seek if an item is in their current location.
Column | Type | Required | Unique |
---|---|---|---|
x | str | yes | |
y | str | yes |
POST: https://alabastraapp.herokuapp.com/additems/
The id sent has to be the player's id. The user can either encounter gold or gem when they find an item, so then what they find in the next row.
Column | Type | Required | Unique |
---|---|---|---|
id | str | yes | |
gold or gem | str | yes |
GET: /api/bigbang/
This deletes all the items located in the map, from the database. Mainly used to add a new batch of Items.