This repository contains a full-stack web application with a React Router frontend, Node.js backend, and SQLite database. A simple dog adoption app where users can browse a large library of doggies, filter based on breed and age, and save their favorite dogs. The user can then produce a 'match', generated based on their listed favorite dogs.
- Node.js
- npm or yarn
- Git
git clone git@github.com:christinabrgs/fetch.git
cd backendnpm installCreate a .env file in the backend directory and add:
PORT = 5000
DATABASE_URL = ./database.dbnpm run devcd ../frontendnpm installCreate a .env file in frontend:
VITE_DATABASE_URL = http://localhost:5000/dogs
VITE_API_URL = https://frontend-take-home-service.fetch.com
VITE_RENDER_URL = https://fetch-ne1g.onrender.comnpm run dev- The backend uses Express.js for route handling and SQLite database.
- The frontend is built with React Router & Vite.
- API/ Database URLs are managed via environment variables.
- The session will expire after 1 hour, requiring users to re-login.
- The frontend uses Axios for API data fetching.
- If you encounter issues, check the logs.
- Open a GitHub issue or reach out for support!