- A Spoonacular API key for the recipe API
- An account on ElephantSQL for the database
- Install node.js and npm
-
Clone the repository
$ git clone remote URL
cd recipe-app
-
Setting up backend:
- Navigate to backend directory:
cd backend
- Install the necessary packages:
npm install
- Spoonacular API: Add the api key to the API_KEY variable in the .env file
- ElephantSQL Setup:
- Create a new database instance on ElephantSQL.
- Copy the connection string provided by ElephantSQL.
- Prisma Setup:
- Replace the DATABASE_URL in the .env file with your ElephantSQL connection string.
- Initialize Prisma and generate the Prisma client:
npx prisma init
npx prisma generate
- Start the backend server:
npm start
- Navigate to backend directory:
-
Setting up the Frontend:
- Navigate to the frontend directory:
cd frontend
- Install the necessary packages:
npm install
- Start the frontend development server:
npm run dev
- Navigate to the frontend directory: