100 Days of Code Day 57
Todays exercise was Resistor Color Trio. Same as before except the third does a 10^n scaling factor so we can have kilo/mega/giga ohms.
For the rails API backend and the modified front end from the Django book.
- It looks like I was missing a route for the complete function. (I was expecting that one)
- I didn’t have anything for CORS (CORS is always a pain — I should have expected that one), but a google search put me down the right path after some trial and error.
- I had to downgrade Vite as it doesn’t support the latest version of npm/node js on WSL (not expected, why is it so far behind).
- I had to modify the api path to add the /v1/ part (I expected that too).
- Change the complete button to a check box.
- See if I can change the panel to take up more space.
Remaining things I would like to try:
- Pagination, the new API does 100 returned at a time max.
- After edit can I auto redirect back to the todo list?
- Check it in to Github
- Change to use PostgreSQL.
- Handle duplicate username on sign up.
- rSpec tests for the completed function.
- Can I put the secrets in an environment variable/vault
- Deploy it somewhere so I can show it off?
