This is a fullstack app that simulates a bookstore MVP
This app has been deployed @
https://bookshelf-ac.herokuapp.com/
(in maintenance)
In the project root directory, you can run:
Starts the backend server on port 5000. If you want to test the endpoints please
use the url http://localhost:5000
. For example:
- GET /books/ - Returns a list of books in the database in JSON format
- GET /book/{{id}}/ - Returns a detail view of the specified book id. Nest author details in JSON format
- GET /authors/ - Returns a list of authors in the database in JSON format
- GET /author/{{id}}/ - Returns a detail view of the specified author id
- POST /author/ - Creates a new author with the specified details - Expects a JSON body
- POST /book/ - Creates a new book with the specified details - Expects a JSON body
- PUT /author/{{id}} - Updates an existing author - Expects a JSON body
- PUT /book/{{id}} - Updates an existing book - Expects a JSON body
Starts the backend server on port 5000 with nodemon, which means it will restart at
every change saved to files.
Starts the frontend server on port 3000. Open the url
http://localhost:3000 in your browser to start using the app's
UI. The page will reload if you make edits.
You will also see any lint errors in
the console.
Starts both backend and frontend servers on ports mentioned above. It runs both scripts at once, using the package concurrently:
npm run server
npm run client