Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aelyakoubi/bookstore-back-end

Bookstore BACK-END: JavaScript, Prisma, Node.js, MySQL, Error handling, Authentication, Routes, Api, CRUD method
https://github.com/aelyakoubi/bookstore-back-end

bookstore-api bookstore-management-system bookstore-web

Last synced: 5 days ago
JSON representation

Bookstore BACK-END: JavaScript, Prisma, Node.js, MySQL, Error handling, Authentication, Routes, Api, CRUD method

Awesome Lists containing this project

README

        

Made with:```Windows, Visual Studio Code```
-----------------------------------------------------
Computer language: ```JavaScript, Node.JS, Prisma, MySQL```
------------------------------------------------------
Logic: ```Routes, Middleware, Errorhandling```
------------------------------------------------------
Security Authentication: ```Normal level with username and password / login and token```
----------------------------------------------------------------------------------

Set up:
```npm install, npm run dev```
---------------------------------------------------------------------------------

This was my first Back-end project at the WincAcademy what was real educational and fun!

special was the learning of enum ItemType in my prisma.schema file to be able to create the record in the database:

enum ItemType {
BOOK
RECORD
}

Be aware of the right code:

curl --request POST \
--url https://dev-1s8fgraw4evcfthb.eu.auth0.com/oauth/token \
--header "content-type: application/json" \
--data '{"client_id":"CkBH7CFaQmUuku3xbQOgyi2WN0gO3fmo","client_secret":"1OqvZgUTVe4nIbEg-AIjEa6nwuLMcFXHirjaJTVoQQTKl0hPoVw47qA7fvdTHObv","audience":"https://book-store-api","grant_type":"client_credentials"}' \ --ssl-no-revoke .

![bookstore1](https://github.com/aelyakoubi/bookstore-Back-end/assets/115151631/6f5ffc81-1545-444d-8af2-35d3e322db7f)

![bookstore2](https://github.com/aelyakoubi/bookstore-Back-end/assets/115151631/a84aa1a3-a725-4d4b-833c-35d063e0606d)

![Bookstore3](https://github.com/aelyakoubi/bookstore-Back-end/assets/115151631/a8ed1c8f-46f2-4b1d-ab6e-09239abe5649)

```Thanks and credits to WincAcademy in Amsterdam, The Netherlands!```