Activity

alarixfr

BACKEND SECURITY


Improved backend security and some bug fixes:)

GIT COMMITS


d7a55f2 security fixes and bug fixes

WHATS CHANGED?


  • Added Cache-Control no-store and Pragma no-cache to auth routes
  • Added auth only limited to 10req/min
  • Added email normalization on register/login
  • Added and changed max password limit in register/login/change-password
  • Added member id length validation on all /:id routes
  • Added fullname whitespace trim on members routes
  • Added whitespace trim on gym route
  • Added Content-Type check middleware
  • Added X-API-Version response header
  • Changed helmet crossOriginResourcePolicy to false
  • Fixed some typo and other bugs
  • etc.

QUICK LINE


Improved security and fixed some bugs

NEXT STEPS


Fix the status page fetch request in frontend and add Gymscribe Lite page

Attachment
0
alarixfr

MAJOR BACKEND UPDATE

Because this is BIG UPDATE so lets make a proper devlog :)

GIT COMMITS

b67b02d added helmet and compression package and added better shutdown, better error handling and better security
c40b4a4 split monolithic server.js into separate routes files, middlewares, functions and shared prisma instance and fixed missing semicolon
7fa68ce added additional server info and changed readme

WHATS CHANGED?

  • Cleaned a single BLOATED server.js file into separates routes, middlewares, utils, prisma etc.
  • Improved security by using helmet and compression
  • Improved error handling
  • Added missing info required for frontend status page request
  • Added request logger
  • Added large request warning
  • Added 404 route handling
  • Added missing semicolon
  • Better startup log info
  • Express caching with ETag
  • Updated README
  • etc.

QUICK LINE

Splitted server.js monolithic code into multiple files, improved security, better error handling, added more server info in /, etc.

NEXT STEPS

Fix the status page fetch request in frontend and add Gymscribe Lite page

Attachment
0
alarixfr

WORKING ON STATUS

i think this is good for people who download gymscribe locally and want to check the server/backend status and its info, i also curious lol,

i think i will touch backend after 20+ hours of frontend bruh

next is finishing the status page and backend changes for more status info :)

Attachment
Attachment
0
alarixfr

FINISHED TOOLS

Finally finished tools feature that are consist of 3 category: health, strength, nutrition

also added VO2Max and Ideal Body Weight (idk if its on the screenshot i forgor)

next is status page to show the server connection information and some really cool data from the server :)

Attachment
Attachment
Attachment
0
alarixfr

COMPLETED HEALTH AND STRENGTH TOOLS

Finished the tools on health and strength category, also added toolsSelect.js to handle tools selection and switching, the custom element really helped me figuring out how do i switch each tools div element.
next is finishing all the tools :)

Attachment
0
alarixfr

WORKING ON TOOLS

i filtered some “cheap” tools and removed them, theres now fewer tools that actually useful, im still working on the health category, also i used custom elements to speed up the process because no react :(

next will be finishing the health category tools :)

Attachment
0
alarixfr

ADDED TOOLS PAGE!!

yes! i will add bunch of tools to help your gym bros! right now the “home page” for tools is complete. btw i spent so much time to fix the footer lol

the tools will be splits to 3 category, each of them contains 10 unique tools!

this will be amazing! next is making the tools functions :)

Attachment
0
alarixfr

README + DOCS + API + ???

finished the readme and….
improved the docs and api page because there is typo and stuff, also added ????
well who knows? maybe check the github to see whats added i guess ;)

next will be something very cool! :)

Attachment
0
alarixfr

POLISHED API PAGE AND FINISHED DOCS!

made it to past 67 hours!!!

i liked the docs style idk why also my render trial is almost ends so yeah i might need to buy a vps :((

anyway docs complete and next will be the markdown for the github repo :)

Attachment
2

Comments

melon
melon 14 days ago

why is the backend in one file tw_scream

alarixfr
alarixfr 14 days ago

@melon because i too lazy to use routes! i started in one file until it have tok much routes! 😭

alarixfr

MAJOR UPDATE

bigggg update, might fixed attendance and journals sync lol, anyway

BACKEND COMPLETE

yeah its complete! added security and improvements too for the final touch!

API

the api is now done including the api page! you need to use your token as query for the api to works

other stuff

new banner for gymscribe flavortown and readme also there will be a dedicated docs for gymscribe !!!

next steps

now im updating the frontend including the markdown and readme, theres will be alot coming! :)

Attachment
Attachment
0
alarixfr

NEW BANNER + CHANGE PASSWORD

so i added change banner in gym page and also made new banner and use some screenshot for the landing page purposes but i think i will change it if i have a better one to show, anyway i also fixed some stuff like journals bug and more….
next is going to be …
idk i will figure it later :)

Attachment
Attachment
Attachment
0
alarixfr

SYNC JOURNALS AND ATTENDANCE + EXPORT TO CSV

added sync journals and attendance button on gym page, i make it manual because to make it simple (lazy) and to save db size i guess, anyway there are save, load, clear local and reset button
and now there are export to .csv in members page, this allows tou to convert member list to csv for some stuff idk
also the speed improve of the website cz i remove the double auth check but idk if its actually improves the speed lol
as usual i also fixed some stuff and make some improvements!
next i will be design new banner/thumbnail and update the landing page placeholder image :)

50 HOURS!! 💪

Attachment
Attachment
2

Comments

chefpenguino
chefpenguino about 1 month ago

this is fire, nice stuff

alarixfr
alarixfr about 1 month ago

@penguino thanks 💪💪💪

alarixfr

ATTENDANCE CHART COMPLETE + IMPROVEMENT

so the attendance chart is now working and i make the yvalue not fixed for readibility and ofc some fixes and improvements! next is …. uh idk this almost done but i keep going i guess…

next is going to be saving and load journals to db :)

Attachment
0
alarixfr

COMPLETED MEMBERS PAGE

yeah its done and working,
added functionality to the modals, improved some stuff and also fixing stuff. next is analytics attendance chart :)

Attachment
0
alarixfr

FETCH BACKEND + MEMBER LIST

the members page is now showing the member list and attendance toggle also working.
added scrollreveal animation and few improvements and fixes, next is completing the members page :)

Attachment
0
alarixfr

BACKEND FIX + IMPROVEMENT

so after i change the bigint to datetime previously, i fixed the backend code and added input validations for members data and other fixes.
next is update the frontend code so it works with the new dateTime update :)

Attachment
Attachment
0
alarixfr

UPDATED PRISMA SCHEMA

so because of the bigint error that caused so much error i changed bigint to datetime, i need to reset the database but theres only test account so its better to fix it now than multiple errors in production, next i will fix the server.js code so it will work with the changes i made :)

Attachment
Attachment
0
alarixfr

added add members

but theres a bug lol, so with bigint and stuff on created_at, im changing it to normal timestamp but it needs few fixes, hopefully it should be working soon :)

Attachment
0
alarixfr

added load members list function in members page

i have not added add member functionality so im guessing this would work :)

Attachment
Attachment
0
alarixfr

COMPLETED ANALYTICS PAGE + MORE

complete data fetch and display in analytics, attendance system also including chart!
and added email “username” in navbar and logout functionality,
i think i will add “sync” for attendance and journal because it’s saved in localstorage
also adding improvement on some stuff and fixes!
next will be members page :)

Attachment
0
alarixfr

COMPLETED GYM DETAIL + LOGIN REDIRECT

now you will redirected to the dashboard after login and the gym data will appear! you can also edit your gym im the “gym” page!

Attachment
Attachment
0
alarixfr

COMPLETED LOGIN PAGE + IMPROVEMENT

the altcha error takes some times but now i completed the frontend fetch to the backend, right now it for login and register and you can “waitlist” by register an account early!

next, i will do the auth to the dashboard :)

Attachment
Attachment
Attachment
2

Comments

michaeljosil1111
michaeljosil1111 about 1 month ago

good

alarixfr
alarixfr about 1 month ago

@michaeljosil1111 thankss

alarixfr

ALTCHA WORKING

finnaly after some fixes the altcha is working and the problem is i forgor to use async and await that why it gives {} lol

Attachment
3

Comments

mohamedjaouadiacc
mohamedjaouadiacc about 2 months ago

awawawawawawawa

alarixfr
alarixfr about 2 months ago

awawawawa

alarixfr
alarixfr about 2 months ago

you supposed to talk in the flavortown slack channel bruh

alarixfr

ALMOST FINISHED BACKEND

i ALMOST finished the backend,
im stuck at altcha, and i dont have server to host this :(
maybe i will buy the hosting credits for this ¿

Attachment
Attachment
0
alarixfr

Backend init

today i completed the backend setup and decided to use postgresql with prisma as the backend, i will be using neon to connect with the db

thats devlog for today :)

Attachment
Attachment
0
alarixfr

FRONTEND COMPLETE


its overrr, the frontend took 24+ hours to make, but that doesnt mean its fully done because theres stuff i need to add and fixes! however i think this enough to continue to the backend!

ty, see u again soon :)

Attachment
0
alarixfr

FINISHED MODAL UI

took hours idk why also next is going to be journals using local storage then i will continue to backend

Attachment
0
alarixfr

Gymscribe Devlogs

finnaly added modal, took hours because i use the wrong path to the modal scripts 💀
for the fraud team:

uhh so i check the web for the design like every line and i enjoy it a lot that i forgot to continue code so thats still counts as coding, i guess

thats all for this devlog, see you in the next devlog, ty :)

Attachment
0
alarixfr

the frontend is almost over…
completed the api page, and next is popup for members page, very sad knowing that i enjoy the frontend alot but thats for the devlog and thanks :)

Attachment
0
alarixfr

finished gym setting page, i will make it simple because it just setting so yeah, next is the api page and the frontend journey almost end 😭

Attachment
0
alarixfr

another devlog todayy,
added responsiveness to the members page and file setup for gym settings page tommorow :)

Attachment
0
alarixfr

BEAUTIFUL 😭😍
FINISHED THE MEMBERS PAGE FRONTEND!
its quite challenging but it’s so satisfying to see the result at the end! tommorow doing the gym setting page!
thats for today devlog thanks, bye! :)

Attachment
Attachment
0
alarixfr

so tired its around 3am and i dont sleep
so this night i created the members page and fixed some things i dont even remember what im really doing but yeah i got burn out almost every line dont know what to do but thats all for the devlog! thanks see you in some hours ima sleep

Attachment
4

Comments

shreyas.dg28
shreyas.dg28 about 2 months ago

Looks awesome! I personally think my gym could use a bit better management system like yours!

alarixfr
alarixfr about 2 months ago

@shreyas.dg28 thank you, theres more to come this is just the bare style 😁

sam.vandenabeele.09
sam.vandenabeele.09 about 2 months ago

this is really awesome! Styling is really good (especially concidering no framework is used)

alarixfr
alarixfr about 2 months ago

@sam.vandenabeele.09 thankss, this ui just feels right for me :)

alarixfr

big changes today!!
finished polishing frontend for dashboard and mobile responsive 💀

added redirect page in /dashboard to analytics page

made some changes across all pages for feature description thingy and updated the readme.md

also cleaned the messy files and folders to clean path and divided scripts into its own function

its for today thanks :)

Attachment
Attachment
Attachment
0
alarixfr

i like the ui, i guess frontend for the dashboard is almost done so next is responsiv- 💀💀💀

oh no media queries…

Attachment
Attachment
0
alarixfr

guys.. uh
working on the dashboard page frontend and decided to use chart.js for the chart and some little adjustement including the login page design, now you can see the dashboard by clicking the green button on the login page
i might just make the mobile view looks like desktop view instead of making the website fully responsive but idk, i guess this is enough for a devlog :)

Attachment
Attachment
0
alarixfr

completed login page, working on dashboard frontend next, i guess i will be using firebase for backend bcz its free plan

Attachment
0
alarixfr

Started login page, still not conpleted yet so yeah i dont really have the image but at least the landing page donee

Attachment
0