diff --git a/DOCKER_SETUP.md b/DOCKER_SETUP.md index a730526..f4bfb5c 100644 --- a/DOCKER_SETUP.md +++ b/DOCKER_SETUP.md @@ -1,4 +1,4 @@ -# Docker Setup for Recipe Management App +# Docker Setup for Scoffer ## Full Stack Containerized Setup @@ -32,9 +32,7 @@ Create a `.env` file in the project root with the following variables: ```bash # MongoDB Configuration -MONGODB_USERNAME=admin -MONGODB_PASSWORD=password123 -MONGODB_DATABASE=recipe-management +MONGODB_DATABASE=scoffer # JWT Secret for Backend Authentication JWT_SECRET=your-super-secret-jwt-key-change-this-in-production diff --git a/README.md b/README.md index 0f90b08..da11527 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Recipe Management App +# Scoffer A full-stack recipe management application that allows users to browse recipes, select them for their menu, and automatically generate aggregated shopping lists. @@ -30,7 +30,7 @@ A full-stack recipe management application that allows users to browse recipes, ## Project Structure ``` -recipe-management-app/ +scoffer/ ├── backend/ │ ├── models/ # Database models │ ├── routes/ # API routes @@ -48,11 +48,11 @@ recipe-management-app/ └── README.md ``` -## Setup Instructions +## Installation and Setup ### Prerequisites -- Node.js (v14 or higher) -- MongoDB (running locally or MongoDB Atlas) +- Node.js (v16 or higher) +- MongoDB (local installation or MongoDB Atlas) - npm or yarn ### Backend Setup @@ -70,11 +70,9 @@ recipe-management-app/ 3. Create a `.env` file with your configuration using a copy of the `.envtemplate` file (for example): ``` PORT=5000 - MONGODB_URI=mongodb://localhost:27017/recipe-management - MONGODB_USERNAME=admin - MONGODB_PASSWORD=password123 + MONGODB_HOST=localhost MONGODB_PORT=27017 - MONGODB_DATABASE=recipe-management + MONGODB_DATABASE=scoffer JWT_SECRET=your-super-secret-jwt-key-change-this-in-production ``` diff --git a/backend/.envtemplate b/backend/.envtemplate index 44f05b9..b524218 100644 --- a/backend/.envtemplate +++ b/backend/.envtemplate @@ -1,5 +1,5 @@ PORT=5000 #port for the app MONGODB_HOST=localhost #host for the mongodb connection (localhost for local and mongodb for docker) MONGODB_PORT=27017 #port for the mongodb connection -MONGODB_DATABASE=recipe-management #database for the mongodb connection +MONGODB_DATABASE=scoffer #database for the mongodb connection JWT_SECRET=your-super-secret-jwt-key-change-this-in-production #jwt secret for the app diff --git a/backend/package.json b/backend/package.json index e12359f..396aeb9 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,7 +1,7 @@ { - "name": "recipe-backend", + "name": "scoffer-backend", "version": "1.0.0", - "description": "Backend for recipe management app", + "description": "Backend for Scoffer recipe management app", "main": "server.js", "scripts": { "start": "node server.js", diff --git a/backend/seedData.js b/backend/seedData.js index d7be3dc..f7d657a 100644 --- a/backend/seedData.js +++ b/backend/seedData.js @@ -152,7 +152,7 @@ const sampleRecipes = [ async function seedDatabase() { try { // Connect to MongoDB - await mongoose.connect(process.env.MONGODB_URI || 'mongodb://localhost:27017/recipe-management'); + await mongoose.connect(process.env.MONGODB_URI || 'mongodb://localhost:27017/scoffer'); console.log('Connected to MongoDB'); // Clear existing recipes diff --git a/backend/server.js b/backend/server.js index de0b2cf..f39e155 100644 --- a/backend/server.js +++ b/backend/server.js @@ -13,7 +13,7 @@ app.use(express.json()); // MongoDB connection const MONGODB_HOST = process.env.MONGODB_HOST || 'mongodb'; const MONGODB_PORT = process.env.MONGODB_PORT || '27017'; -const MONGODB_DATABASE = process.env.MONGODB_DATABASE || 'recipe-management'; +const MONGODB_DATABASE = process.env.MONGODB_DATABASE || 'scoffer'; const MONGODB_URI = `mongodb://${MONGODB_HOST}:${MONGODB_PORT}/${MONGODB_DATABASE}`; @@ -39,7 +39,7 @@ app.use('/api/users', require('./routes/users')); app.use('/api/selections', require('./routes/selections')); app.get('/', (req, res) => { - res.json({ message: 'Recipe Management API is running!' }); + res.json({ message: 'Scoffer API is running!' }); }); app.listen(PORT, () => { diff --git a/docker-compose.yml b/docker-compose.yml index 7cf7458..b2bacb5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: # MongoDB Database mongodb: image: mongo:7.0 - container_name: recipe-management-mongodb + container_name: scoffer-mongodb restart: unless-stopped ports: - "27017:27017" @@ -25,13 +25,13 @@ services: build: context: ./backend dockerfile: Dockerfile - container_name: recipe-management-backend + container_name: scoffer-backend restart: unless-stopped environment: - PORT=5000 - MONGODB_HOST=mongodb - MONGODB_PORT=27017 - - MONGODB_DATABASE=recipe-management + - MONGODB_DATABASE=scoffer - JWT_SECRET=${JWT_SECRET} ports: - "5000:5000" @@ -49,7 +49,7 @@ services: build: context: ./frontend dockerfile: Dockerfile - container_name: recipe-management-frontend + container_name: scoffer-frontend restart: unless-stopped ports: - "3000:80" @@ -63,7 +63,7 @@ services: # Optional: MongoDB Express for database management mongo-express: image: mongo-express:1.0.0 - container_name: recipe-management-mongo-express + container_name: scoffer-mongo-express restart: unless-stopped ports: - "8081:8081" diff --git a/env.example b/env.example index 899756b..379a40a 100644 --- a/env.example +++ b/env.example @@ -1,7 +1,7 @@ # MongoDB Configuration for Docker Compose (no authentication) MONGODB_HOST=mongodb MONGODB_PORT=27017 -MONGODB_DATABASE=recipe-management +MONGODB_DATABASE=scoffer # JWT Secret for Backend JWT_SECRET=your-super-secret-jwt-key-change-this-in-production \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index 31cfab5..6467ea8 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,5 +1,5 @@ { - "name": "recipe-frontend", + "name": "scoffer-frontend", "version": "0.1.0", "private": true, "dependencies": { diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx index 0a2c74e..218d548 100644 --- a/frontend/src/pages/Dashboard.tsx +++ b/frontend/src/pages/Dashboard.tsx @@ -27,7 +27,7 @@ const Dashboard: React.FC = () => {
-

Recipe Manager

+

Scoffer

Welcome back, {user?.username}!

diff --git a/frontend/src/pages/Login.tsx b/frontend/src/pages/Login.tsx index 909cb4d..5bb1df3 100644 --- a/frontend/src/pages/Login.tsx +++ b/frontend/src/pages/Login.tsx @@ -37,7 +37,7 @@ const Login: React.FC = () => {

Welcome Back

-

Sign in to your recipe management account

+

Sign in to your scoffer account