My implementation of Simple Book Store module of Learners Guild curriculum.
A full-stack CRUD web application where users can:
- view list of books,
- search in the database by book title or author or genre,
- edit book data,
- add new book,
- delete a book.
- seeding Postgres database with CSV data from a file
- displaying data from the database in a paginated way
- implementing a search from the local database
- sending PUT and DELETE requests from a form using
method-override
module
https://bookstore-mira.herokuapp.com/
These instructions are for getting a copy of the project on your local environment.
- Clone/Fork -
git clone https://github.com/Maxmi/SimpleBookStore.git
- Install npm packages -
npm install
- Create database and tables -
npm run db:init
(make sure you don't have a db namedbookstore
as this command will delete it)
- Run
cp .env.template .env
command in the terminal to create your own.env
file and enter your config values in the.env
file
- Run
npm start
- To access the app go to
http://localhost:3000
- Run
npm test