Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month ago
JSON representation
Bookstore BACK-END: JavaScript, Prisma, Node.js, MySQL, Error handling, Authentication, Routes, Api, CRUD method
- Host: GitHub
- URL: https://github.com/aelyakoubi/bookstore-back-end
- Owner: aelyakoubi
- Created: 2023-11-07T19:31:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-09T11:14:46.000Z (11 months ago)
- Last Synced: 2024-06-09T14:50:37.093Z (7 months ago)
- Topics: bookstore-api, bookstore-management-system, bookstore-web
- Language: JavaScript
- Homepage: https://bookstore-api-gfht.onrender.com
- Size: 200 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!```