Struggling to find what to read next? Get details about a book with a simple search with VITLIB.
Live Demo | Website | Repository
- npm. You can also install with Node Version Manager. This project requires Node.js 18.17 or later.
npm install npm@latest-g
- Clone the repository
git clone https://github.com/spencer-rafada/vitruvius-cc.git
cd vitruvius-cc
- Install NPM Dependency Packages
npm install
- Create .env.local in root directory and write a value for NODE_ENV ('development' | 'production')
NODE_ENV=development
This helps with deploying the code to production
Static Site Generation of the app. During testing, the app will fail if you hit dynamic endpoints. Here is a list of generatedStaticParams for dynamic endpoints.
/book/[olid] - The Hunger Games books will be covered.
/genre/[genre] - All of these genre are generated statically
[
{ key: 'fiction' },
{ key: 'novel' },
{ key: 'narrative' },
{ key: 'science' },
{ key: 'mystery' },
{ key: 'history' },
{ key: 'art' },
{ key: 'children' },
{ key: 'love' },
{ key: 'sci-fi' },
]
Builds the app depending on the value of NODE_ENV
environment variable
Need to run npm run build
first. Generates the app that will be deployed in production.
This is more stable when testing dynamic routes.
Runs all of the test with Jest and provide information about code coverages.
Watches files for changes and rerun tests related to changed files. Very useful script during development.
In this video, I demonstrate all of the features available in VITLIB.
In this video, I demonstrate the process of creating VITLIB from planning to ideation to production.
Planning to Ideation to Product
[BETA] In addition to the features said above, you can search for books using the url https://vitruvius-cc.vercel.app/books/{enter book here}
which redirects you to the book details page
Any contribuitions you make are highly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b name/feature-name
) - Commit your changes (
git commit -m 'Write meaningful commit
) - Push to the branch (
git push origin name/feature-name
) - Open a Pull Request
Spencer Rafada - neilspencerrafada@gmail.com - Portfolio - LinkedIn
Project Link - Live Demo - Repository
-
Ismatulla Mansurov for giving me this great opportunity to showcase my skills for my application.
-
Vitruvius Design + Build