Releases: Rafase282/Mangadb
MandaDBv2 + Gmail
MandaDBv2
We have switched over to ES6 and changed the schema so now the manga schema only has the _id
key as unique.
This means youc an now have duplicated mangas and also other users can also have their own manga with same information as yours without issues. Before once a manga url or title was used, no other users could use it.
Mangas are now deleted, updated and individually retrieve by id instead of title.
MangaDB v1
Author
Created by Rafase282
Github | FreeCodeCamp | CodePen | LinkedIn | Site | E-Mail
Manga Record Microservice V1
This is an API created to store crucial information for any manga an authenticated user might read. Wtheer you want to keep track of the manga you will rea, already finished or are currently reading this microservice will help you get your data together. In the Future I intend on adding more features but meanwhile the user interface will be separated and this stays as the core backend.
There is an admin account that is declared onteh envarioment variables that basically has root access, it must be created and a secure password used. The admin can override any information if needed including passwords. In the future I will implement email services to mail queries, and particularly to allow for password reset if forgotten.
What you can do:
For full documentation visit https://mangadbv1.herokuapp.com/
- Create a manga accessed at: POST
https://mangadbv1.herokuapp.com/api/v1/mangas/:user/title=Aiki&author=Isutoshi&url=http%3A%2F%2Fwww.readmanga.today%2Faiki&userStatus=reading&type=Japanese&categories=Action%2C+Ecchi%2C+Martial+Arts%2C+Mature%2C+Seinen&chapter=14&seriesStatus=Completed&plot=There+is+fighting+at+the+high+school+due+to+a+power+struggle+for+control.+The+granddaughter+of+the+chief+director+requests+help+from+the+Aikido+fighting+style+genius.+Will+he+help%3F+Or+will+he+show+his+true+colors+with+his+bad+boy+ways%3F
- Get the manga by title: GET
https://mangadbv1.herokuapp.com/api/v1/mangas/:user/:manga_title
- Update the manga with this title: PUT
https://mangadbv1.herokuapp.com/api/v1/mangas/:user/:manga_title
- Delete the manga by title: DELETE
https://mangadbv1.herokuapp.com/api/v1/mangas/:user/:manga_title
- Admin can get a list of all the mangas across the user base: GET
https://mangadbv1.herokuapp.com/api/v1/mangas
- Admin can get a list of all users: GET
https://mangadbv1.herokuapp.com/api/v1/users
- Admin can delete all users including itself, this requires the admin to be re-created: DELETE
https://mangadbv1.herokuapp.com/api/v1/mangas
- Admin can get a list of all the mangas across the user base: GET
https://mangadbv1.herokuapp.com/api/v1/mangas
Remember to use Content-Type: application/x-www-form-urlencoded
, the API will tell you what field are required in case you dont want to take a look at the schema.
To Do:
- Add thumbnail property to Mongoose Schema and make it work with current data.
- Switch to JSON Web Tokens.
- Validate E-mails.
Status
This project is ongoing. However, I have decided to move to v2 in another branch. The current website will still work with v1 until v2 is release and so on.
For future reference, the site is at https://manga-client.herokuapp.com/ where you can use the interface. Future versions might or might not use that url as I plan on building multiple clients. However, feel free to build your own based on the code.
If you want to provide improvements to the existing codebase, feel free to submit pull requests. If you want to add new functionality, then let me know and we mihgt be able to do it. However, it makes better sense to work with the newer version unless I change teh stack or technologies.