Skip to content

Releases: Rafase282/Mangadb

MandaDBv2 + Gmail

20 Apr 20:24
Compare
Choose a tag to compare

Now the system will send email notifications when certain actions are triggered, mainly user creation and deletion; either individual users or groups. Mass manga deletions are also a trigger.

MandaDBv2

20 Apr 20:22
Compare
Choose a tag to compare

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

01 Mar 02:57
Compare
Choose a tag to compare

Author

@Rafase282

Created by Rafase282

Github | FreeCodeCamp | CodePen | LinkedIn | Site | E-Mail

Gitter Build Status Dependency Status devDependency Status bitHound Overall Score bitHound Dependencies bitHound Dev Dependencies bitHound Code

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/

  1. 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
  2. Get the manga by title: GET https://mangadbv1.herokuapp.com/api/v1/mangas/:user/:manga_title
  3. Update the manga with this title: PUT https://mangadbv1.herokuapp.com/api/v1/mangas/:user/:manga_title
  4. Delete the manga by title: DELETE https://mangadbv1.herokuapp.com/api/v1/mangas/:user/:manga_title
  5. Admin can get a list of all the mangas across the user base: GET https://mangadbv1.herokuapp.com/api/v1/mangas
  6. Admin can get a list of all users: GET https://mangadbv1.herokuapp.com/api/v1/users
  7. Admin can delete all users including itself, this requires the admin to be re-created: DELETE https://mangadbv1.herokuapp.com/api/v1/mangas
  8. 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.