This is an online bookstore application with the following features:
This app has the following routes:
Docker compose for containerization and easy project setup.
git clone https://github.com/zthh626/novel-nook.git
cd novel-nook
Modify the .env
file in the root directory. SECRET_KEY
is the key used for signing the JWT key change this to some secret key for security purposes. DATABASE_URL
is pointed to the docker-compose PostgreSQL instance.
Install node modules with npm install
Run the application with docker-compose:
docker-compose up
Migrate the database with npx prisma db push
Seed the database with npx prisma db seed
This command uses the DATABASE_URL
in the .env
file. The mock data for this seed is located at authors.json and books.json.
http://localhost:3000/
Currently, only unit tests for auth
npm run test
The database schema has the following 4 tables:
For a deeper explanation view database.md.
favourites
in database schema but everything else is called favorites
.SearchInput
has quick search half implemented, the feature will have a short list of search results as the user typed.