Skip to content

Tetris back-end, built with Node, Express, and Knex. Handles user authentication and the leaderboard scores.

Notifications You must be signed in to change notification settings

CarlKarlQarl/Legally-Distinct-Tetris-Backend

Repository files navigation

!Tetris Back-end

This is the back-end repository for my Tetris clone. It was built with Node, and uses Express and Knex.

The models are a user, with a username and password, and a score, with points and a reference to a user. Authentication is handled by hashing the user's password with bcrypt, and encoding/decoding with JWT.

Play !Tetris

https://legally-distinct-tetris.firebaseapp.com/

Links

Known Issues and Future Changes

  • This the first real thing I've built in Node, and it should show. Everything feels pretty piecemeal and nearly copy-pasted, which is to say, it works and does nothing particularlly special. Even without much knowledge about Node/Express/Knex, it feels very haphazard and amatuer. I'd happy to revisit this.
  • I don't think I'm referencing user ID's correctly in the score model. Again, it is working, but I don't think I have anything in place to keep scores from getting orphaned/there is no referential integrity!

About

Tetris back-end, built with Node, Express, and Knex. Handles user authentication and the leaderboard scores.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published