Skip to content

Commit

Permalink
setting the stage
Browse files Browse the repository at this point in the history
  • Loading branch information
jahnavimurali committed May 9, 2024
1 parent e209bcc commit 3da0c5f
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

api_key.js
13 changes: 13 additions & 0 deletions controller/MainController.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { api_key } from "../api_key";
import axios from 'axios';

getRecipesBySearch = (searchQuery) =>{

try{

}catch(err){

}


}
43 changes: 43 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"axios": "^1.6.8",
"cors": "^2.8.5",
"express": "^4.19.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-scripts": "5.0.1",
Expand Down
Empty file added route/MainRoute.js
Empty file.
16 changes: 16 additions & 0 deletions route/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const express = require('express');
const bodyParser = require('body-parser');
const cors = require('cors');

const router = require('./MainRoute');

const app = express();
const PORT = process.env.PORT || 5000;

app.use(bodyParser.json());
app.use(cors());
app.use('/', router);

app.listen(PORT, () => {
console.log(`Server listening on PORT ${PORT}`);
});

0 comments on commit 3da0c5f

Please sign in to comment.