Coder Social home page Coder Social logo

back-end's Introduction

Table of Contents

Welcome

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 ;)

Tech Stack

  • 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.

Tables

Register New User

POST: https://alabastraapp.herokuapp.com/api/auth/register

Column Type Required Unique
username str yes
email str yes unique
password str yes

Login User

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

Logout User

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).

Map's Data

GET: https://alabastraapp.herokuapp.com/map/
Return's the map's data for the front end to generate the player's map.

Merchant's Inventory

GET: https://alabastraapp.herokuapp.com/api/merchant/
This returns the merchant's inventory for players to buy weapons or trade gold for gems.

Receive every Item's Location

GET: https://alabastraapp.herokuapp.com/api/getItems/
This returns every item in the databases' location on the map.

Item in current player's position

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

Player Picks up Item

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

Delete All Item's from the Map

GET: /api/bigbang/

Careful ^

This deletes all the items located in the map, from the database. Mainly used to add a new batch of Items.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.