Skip to content
/ DND_API Public

this is an personal api to hold database for all of my information of characters, so i can use them to create a website potentially.

Notifications You must be signed in to change notification settings

ritz35/DND_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DND_API

this is an personal api to hold database for all of my information of characters, so i can use them to create a website potentially.

=================================================== 8/5/2024 - 20:04

all ideas and solutions come from this website: https://www.freecodecamp.org/news/rest-api-design-best-practices-build-a-rest-api/ lmao codecamp

Need to work on version control. as we only have the one v1 route folder, could do multiple for all the other folders.

Making this github repo so that we can see the changes with having hardcoded routes, to now putting them in the controller

================================ important

Need to create node_module folder. (this is for adding in all the dependencies in a new computer) in parent directory run these commands: npm i -D nodemon npm i express npm i body-parser npm i uuid (may not need, check update 8/18/2024)

need express dependancies as well as nodemon dependancies.

on the freecodecamp website, we are at the npm body parser dependancy mark.

================================== 8/18/2024 12:07 (idk why im typing US time format, my comp has it like that so now I have it like that..)

I have gotten the POST request working to put in a new campaign, it was a pain, but I got it working (check commit 4 for more details) I have the get working as well, to get everything from the JSON file.

I am now up to the part after adding uuid (in the freecodecamp website), but i dont think the uuid works, but thats fine, i can just add an extra thing for the user to enter in the id

================================== 26/09/2024 just updated all status requests with in services, controller, and campaigns.js in the database.

we are up to "Avoid verbs in endpoint names" in the codecamp website

2/10/2025

I think ill remove the getallcampaigns method (within routes) and just allow the user to use the getcampaignwithpath method, and output all of the campaigns if they dont include the path.

jokes. Ill just add a new method in routes instead of removing them.

made it work somehow, yay

================================== 3/10/2025 3pm

the json format doesnt look great, so I've now redone the json to where theres no actual id, but the names of the campaigns are now numbers.

================================= 3/10/2025 11:30pm

had the great idea to use images from this, lets see how it goes

About

this is an personal api to hold database for all of my information of characters, so i can use them to create a website potentially.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published