Commit graph

67 commits

Author SHA1 Message Date
Muhammad Nauman Raza a5fa53190b docs: very voluntary credit update 2023-10-19 09:24:14 +01:00
Muhammad Nauman Raza e44d70ba5f docs: update credits 2023-10-02 18:23:50 +01:00
Muhammad Nauman Raza a57b68891b feat(backend): websockets with player co-ordination and JWT auto-generation 2023-08-20 12:50:21 +01:00
Muhammad Nauman Raza 33f7ba8fcd feat(backend): use a more stylish logging system 2023-08-05 12:56:01 +01:00
Muhammad Nauman Raza 3cb207caa5 hotfix(frontend): broken module structure 2023-08-05 12:48:17 +01:00
Muhammad Nauman Raza 47fff28f23 chore(frontend): restructure modules 2023-08-05 12:45:59 +01:00
Abdulmujeeb Raji fa27e5f24a Merge branch 'main' of github.com:devraza/ambition 2023-08-04 14:56:52 +01:00
Abdulmujeeb Raji a1f6d8fe7f feat(frontend): get login token from server
As of right now, we don't actually do anything with the token. But at
least we're actually able to get it. 😅

Caveats in implementation:
- UI now needs a pointer to player
- .env is now required for server auth (mentioned in README.md)
2023-08-04 14:55:53 +01:00
Muhammad Nauman Raza ea70e2738c hotfix(docs): I've got nothing to say 2023-08-01 22:00:56 +01:00
Nightmare 7210dcd538 Update README.md
L
2023-07-31 21:03:01 +01:00
Nightmare b82070602d Update README.md
changed my name boys
2023-07-31 21:02:20 +01:00
Nightmare bad7dcb4a4 Corrected README.md
i am a force of chaos
2023-07-31 20:57:33 +01:00
Abdulmujeeb Raji 4c536581e1 hotfix(backend): create real error for missing JWT_SECRET 2023-07-31 15:44:38 +01:00
Muhammad Nauman Raza 30fd524747 Merge branch 'main' of github.com:devraza/ambition 2023-07-31 13:58:05 +01:00
Muhammad Nauman Raza 29aa823a0f feat(frontend): login interface boilerplate 2023-07-31 13:57:50 +01:00
Abdulmujeeb Raji 6d5b74f7d0 Merge branch 'main' of https://github.com/devraza/ambition 2023-07-28 18:20:41 +01:00
Abdulmujeeb Raji 8cf3bbda1f feat(backend): update and delete users
The title says most of it. For authentication, the token gotten from the POST
method can be put as a 'Token' header. It's then validated before being used.

Other changes caused by this update are:
- Fixed a bug where the creation token was unusable due to lacking the
  user password hash
- Changed the signing method to HMAC, requiring a string for encryption
  This is mentioned in the README.md
2023-07-28 18:17:01 +01:00
Muhammad Nauman Raza dba75dde1b feat(frontend): FiraCode as a default font as well as more fonts 2023-07-27 20:42:48 +01:00
Muhammad Nauman Raza bf1e867040 docs(backend): improve README 2023-07-27 15:57:32 +01:00
Muhammad Nauman Raza f9294eb780 hotfix(frontend): chat window overlapping everything
The chat window is now a simple container within the left bar
2023-07-27 13:43:03 +01:00
Muhammad Nauman Raza c2d608e0e0 chore(frontend): move chat window to left bar (still draggable) 2023-07-27 13:21:43 +01:00
Muhammad Nauman Raza e69afa3f75 Merge branch 'main' of github.com:devraza/ambition 2023-07-27 13:04:25 +01:00
Muhammad Nauman Raza a8e3d0b291 refactor(frontend): everything
The player.go and ui.go files have been separated into their own
separate packages.
Additionally, all go.mod files have been modified to point to local
directories.

This change should not only clean up the frontend codebase, but also
make it easier to send/recieve data from the backend (at least
regarding the player)
2023-07-27 12:57:11 +01:00
Abdulmujeeb Raji 52002e8f1e chore(backend): remove mentions of .env
This is no longer need in our implementation
2023-07-27 12:13:41 +01:00
Muhammad Nauman Raza f800cafb1d chore(backend): polish things up a little 2023-07-26 22:09:31 +01:00
Abdulmujeeb Raji 950fe47f52 Merge branch 'main' of https://github.com/devraza/ambition 2023-07-26 21:25:44 +01:00
Abdulmujeeb Raji e08adc96ae feat(backend): Create Users and Get JWT
Introducing a unified signup and login API. You can post to the /user
route with credentials (so far just name and password), and if the user
doesn't exist, we create the user and return a token. If the user does
exist, if the password inputted matches the database password, we return
a token for that user, else we return an error.

i've never wanted to kms more during a programming session
2023-07-26 21:16:25 +01:00
Muhammad Nauman Raza 2b73526e42 docs: fix a slight GIMDM 2023-07-25 11:53:36 +01:00
Muhammad Nauman Raza 5e15a03c58 feat(ui): basic chat window initialised 2023-07-24 13:45:52 +01:00
Muhammad Nauman Raza 36589b9cda chore: remove accidentally added executable 2023-07-24 13:45:13 +01:00
Muhammad Nauman Raza ccbd906c6f chore(ui): add placeholder content for remaining tabs 2023-07-23 21:48:49 +01:00
Muhammad Nauman Raza 3cb0cc61d0 feat(ui): profile content within tabbar (within leftbar) 2023-07-23 21:37:24 +01:00
Muhammad Nauman Raza 769e90fa88 chore: font/face code improvement 2023-07-23 17:07:39 +01:00
Muhammad Nauman Raza 65c57d1d3e hotfix: bad code 2023-07-23 15:28:06 +01:00
Muhammad Nauman Raza 888bcb0404 feat(ui): tabbar within leftbar 2023-07-23 15:27:31 +01:00
Muhammad Nauman Raza 21f0e8a429 hotfix: move assets folder 2023-07-23 13:52:03 +01:00
Muhammad Nauman Raza 0575572157 chore: add assets/fonts 2023-07-23 13:50:11 +01:00
Muhammad Nauman Raza cd0e88990c docs: fix typo 2023-07-23 09:27:58 +01:00
Abdulmujeeb Raji 99471afc4a feat(frontend): basic player structure
Player has health, level, exp (which is gained constantly while online)
and ambition (which affects the rate of exp gain). More stats will be
added later. This is mostly just a test implementation. Will clean up
later.
2023-07-23 09:25:31 +01:00
Abdulmujeeb Raji 2ecb20ff3a refactor(fronten): user interface
- Moved user interface code to seperate file
- Added a simple wrapper over ebitenui.UI to allow storage of colors
and such

Hopefully this makes it possible for colors to be changed by users in
the future
2023-07-23 09:24:52 +01:00
Abdulmujeeb Raji 9157bfe8a1 feat(frontend): Basic Player Init
Player has health, level, exp (which is gained constantly while online)
and ambition (which affects the rate of exp gain). More stats will be
added later. This is mostly just a test implementation. Will clean up
later.
2023-07-23 09:20:48 +01:00
Abdulmujeeb Raji 8b0bcef568 frontend: UI refactoring
- moved ui code to seperate file
- added a simple wrapper over ebitenui.UI to allow storage of colors
and such

Hopefully this makes it possible for colors to be changed by users in
the future
2023-07-23 07:57:28 +01:00
Muhammad Nauman Raza d525bc8fff chore(docs): comments 2023-07-23 00:36:55 +01:00
Muhammad Nauman Raza 044f2022e7 feat: hazakura colorscheme + basic interface 2023-07-23 00:34:44 +01:00
Muhammad Nauman Raza 0b3803c8ad feat: random window titles 2023-07-22 23:40:06 +01:00
Muhammad Nauman Raza ce42172eaf docs: update styling 2023-07-22 22:24:38 +01:00
Muhammad Nauman Raza 84580e8a78 chore: split frontend/backend into separate folders 2023-07-22 22:19:15 +01:00
Muhammad Nauman Raza 7d846987b7 docs: update roles 2023-07-22 22:15:53 +01:00
Abdulmujeeb Raji 7cd8f7be12 core: UI boilerplate 2023-07-22 20:26:25 +01:00
Muhammad Nauman Raza a5347293f4 chore: add basic project structure 2023-07-21 21:51:00 +01:00