rename the app to scoffer...everywhere

This commit is contained in:
2025-08-09 17:54:32 +01:00
parent 591ebdf5db
commit 8029d10264
11 changed files with 24 additions and 28 deletions

View File

@@ -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

View File

@@ -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",

View File

@@ -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

View File

@@ -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, () => {