generated from nyu-software-engineering/generic-mern-stack-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from agiledev-students-spring2024/master
update branch
- Loading branch information
Showing
23 changed files
with
223 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
// import and instantiate express | ||
const express = require("express") // CommonJS import style! | ||
const cors = require('cors') | ||
const app = express() // instantiate an Express object | ||
|
||
// we will put some server logic here later... | ||
|
||
app.use(express.json()); | ||
app.use(cors()) | ||
app.use('/public', express.static('public')); | ||
// export the express app we created to make it available to other modules | ||
module.exports = app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
{ | ||
"dependencies": { | ||
"cors": "^2.8.5", | ||
"express": "^4.19.2" | ||
}, | ||
"devDependencies": { | ||
"nodemon": "^3.1.0" | ||
}, | ||
"scripts": { | ||
"start": "nodemon server.js" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,39 @@ | ||
import React from 'react'; | ||
import '../styles/Archive.css' | ||
|
||
function Archive() { | ||
return ( | ||
<div classname="Archive"> | ||
<div className='banner'> | ||
import OverlayMenu from '../components/OverlayMenu'; // Import the OverlayMenu component | ||
|
||
const Outfits = () => { | ||
// Mock data for Pants | ||
const Outfits = [ | ||
{ name: 'Casual Pants', brand: 'Brand A', type: 'Casual' }, | ||
{ name: 'Shirt', brand: 'Brand B', type: 'Formal' }, | ||
{ name: 'Shoes', brand: 'Brand C', type: 'Fashion' }, | ||
{ name: 'Hat', brand: 'Brand D', type: 'New' }, | ||
// ... add more items and stuff as needed | ||
]; | ||
|
||
return( | ||
<div className="Outfits"> | ||
<OverlayMenu /> | ||
<header className='Archive-banner'> | ||
<h1>WARDROBE WIZARD</h1> | ||
<h3>Outfit Archive</h3> | ||
<h3>Pants</h3> | ||
</header> | ||
<div className="Outfit Archive"> | ||
{Outfits.map((item, index) => ( | ||
<div className="Outfit-item" key={index}> | ||
<div className="Outfit-image"></div> {/* Placeholder for the image */} | ||
<div className="Outfit-info"> | ||
<h3>{item.name}</h3> | ||
<p>{item.brand}</p> | ||
<p>{item.type}</p> | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
|
||
</div> | ||
); | ||
} | ||
|
||
export default Archive; | ||
export default Outfits; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters