Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
AMS006 committed Aug 27, 2023
2 parents b615f94 + caa9e46 commit 9be2bab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# TiffinManagment

![Logo](https://res.cloudinary.com/dkgoet9em/image/upload/v1682947169/TiffinManagment/TiffinManagment_gxuxzu.png)

![Logo](https://res.cloudinary.com/dkgoet9em/image/upload/v1690174978/TiffinManagment/TiffinWala_aa7m54.png)
TiffinManagment is a basic Tiffin Ordering Application that is build using the MERN Stack stands for MongoDB, ExpressJS, ReactJS, NodeJS.

## Live Website
Expand Down Expand Up @@ -35,6 +34,8 @@ TiffinManagment is a basic Tiffin Ordering Application that is build using the M

**Database:** MongoDB

**Payment** RazorPay

**Deployment:** Vercel(Frontend), Backend(Cyclic)

## Installation Guide
Expand Down Expand Up @@ -74,11 +75,6 @@ To Installing Dependency for server

### Step-3 Adding Environment Variables

To run this project with your own database you will need to add the following environment variables to your .env file of server
Else you can use my database

## If you are creating your own database Replace (https://vivacious-tuna-gloves.cyclic.app) -> (http://localhost:4000) and add below evnironment vairables


### Environment Variables for Server

Expand Down
9 changes: 9 additions & 0 deletions server/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ const foodModel = require('./models/food')

const app = express()

<<<<<<< HEAD
env.config();
=======
app.use(cors({
origin: ['https://tiffin-managment-client.vercel.app','http://localhost:3000'],
methods: ['GET', 'PUT', 'POST','DELETE'],
allowedHeaders: ['Content-Type', 'Authorization', 'x-csrf-token'],
credentials: true
}))
>>>>>>> caa9e46c53c46e4201cdf7408d499e5c0380425d
app.use(express.json())
app.use(cookieParser())

Expand Down

0 comments on commit 9be2bab

Please sign in to comment.