# Project export: Audiogroph

This document was generated by HackStack to give an AI agent context about a hackathon project. Sections are labeled with their provenance; content marked as truncated was cut to keep this document small.

## Project metadata

- Hackathon: Cal Hacks 10.0
- Tagline: Audiogroph connects fans to their favorite artists by letting artists post upcoming events/concerts with exclusive NFT drops. Fans must show up in-person to events in order to be eligible for rewards.
- Devpost: https://devpost.com/software/audiogroph
- GitHub: https://github.com/RyanGertz/CalHacksproject
- Team: 4 GitHub contributor(s) — Ryan Gertz (16 commits), michaelalbertslo (13 commits), Kharacha (7 commits), Yuji Oshiro (1 commits)

## Devpost submission (written by the team)

### Inspiration

With covid ending and people finding new music tastes at home, we want to help fans connect to their favorite artists in a new way while still encouraging in person connections.

### What it does

The project shows events, creators and any NFTs they have dropped.

### How we built it

We used react to build it in vscode and collaborated through github.

### Challenges we ran into

We had to learn react and navigate through github.

### Accomplishments we're proud of

We have successfully built the frontend of the project.

### What we learned

Start planning earlier and commit to branches instead of main.

### What's next

We need a backend to our project.

## README (from the GitHub repository)

# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.

The page will reload when you make changes.\
You may also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can't go back!**

If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)


## Detected evidence (automated analysis)

Indexed codebase: 23 recognized source files, 29 KB.
- CSS (language) — detected in the code
- HTML (language) — detected in the code
- JavaScript (language) — detected in the code
- React (technology) — detected in the code

## Codebase structure (from repository index)

### Files (28 of 28)

```
.gitignore
package.json
public/index.html
public/manifest.json
public/mock-data/events.json
public/robots.txt
README.md
src/AccountContext.js
src/App.css
src/App.js
src/creators.css
src/creators.jsx
src/Events.css
src/Events.jsx
src/index.css
src/index.js
src/Login.css
src/Login.js
src/Navbar.css
src/Navbar.jsx
src/pages/Home.css
src/pages/Home.js
src/pages/Login.css
src/Search.css
src/Search.jsx
src/setupTests.js
src/Signup.css
src/Signup.js
```

### Dependencies

- package.json: @testing-library/jest-dom@^5.17.0, @testing-library/react@^13.4.0, @testing-library/user-event@^13.5.0, react@^18.2.0, react-dom@^18.2.0, react-router-dom@^6.17.0, react-scripts@5.0.1, web-vitals@^2.1.4, web3@^4.2.1

### Recent commits (newest first)

- events css
- console logging
- css for search
- added context for logging in
- events change and app
- Add Events page
- navbar fix for sign up
- creators bug
- Merge branch 'main' of https://github.com/RyanGertz/CalHacksproject
- idk
- weird bugs
- made creators
- Login Changes :)
- fixed signup bug
- Merge branch 'main' of https://github.com/RyanGertz/CalHacksproject
- home stuff
- Merge pull request #6 from RyanGertz/Michael
- Merge branch 'main' into Michael
- Login and Signup added2
- routes and navbar update

## Key source files (fetched from GitHub, selected and truncated for size)

### package.json

```
{
  "name": "calhacks",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@testing-library/jest-dom": "^5.17.0",
    "@testing-library/react": "^13.4.0",
    "@testing-library/user-event": "^13.5.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-router-dom": "^6.17.0",
    "react-scripts": "5.0.1",
    "web-vitals": "^2.1.4",
    "web3": "^4.2.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

```

### src/index.js

```javascript
import React from 'react'
import ReactDOM from 'react-dom/client'
import './index.css'
import App from './App'
import { AccountProvider } from './AccountContext'


const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <React.StrictMode>
    <AccountProvider>
      <App />
    </AccountProvider>
  </React.StrictMode>
);


```

### src/App.js

```javascript
import './App.css';
import { Route, Routes, BrowserRouter } from 'react-router-dom';
import Home from './pages/Home';
import Signup from './Signup';
import Login from './Login';
import Creators from './creators';
import Events from './Events'




function App() {
  



  return (
    <div className="App">
      <BrowserRouter>
        <Routes>
          <Route path="/" activeClassName="active" element={ <Home /> }/>
          <Route path="/signup" activeClassName="active" element={ <Signup /> }/>
          <Route path="/login" activeClassName="active" element={ <Login /> }/>
          <Route path="/creators" activeClassName="active" element={ <Creators /> }/> 
          <Route path="/events" activeClassName="active" element={ <Events /> }/> 

        </Routes>
      </BrowserRouter>
    </div>
  );
}

export default App;
```

### src/Search.css

```css
.Search{
    display: flex;
    justify-content: center;
    margin-right: 150px;
}


```

### src/setupTests.js

```javascript
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';

```

### src/Events.jsx

```javascript
import SearchBar from "./Search";
import './Events.css';
import Navbar from "./Navbar";

export default function Events() {
    return(
        <div className="Events">
            <Navbar/>
             <h1>Events</h1>
             <div className="Results">
                <SearchBar />   
            </div>
        </div>
    )
}
```

### src/AccountContext.js

```javascript
import { createContext, useState } from 'react'


export const AccountContext = createContext()

export function AccountProvider({ children }) {
    const [accountBool, setAccountBool] = useState(false);

    return (
        <AccountContext.Provider value={{ accountBool, setAccountBool }}>
            {children}
        </AccountContext.Provider>
    )


}
```

### src/index.css

```css
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

```

### src/Events.css

```css
input{
    width: 200px;
}

.Results ul {
    font-family: "Nunito", monospace;
    font-size: medium;
    display: flex;
    color: #004d40;
    gap: 10px;
}

.Results li {
    list-style: none;
    margin-bottom: 10px;
    border-style: solid;
}

/* .Events{
    font-family: "Nunito", monospace;
    font-size: medium;
    display: flex;
    color: #004d40;
    display: flex;
    justify-content: center;
} */

.Results{
    display: flex;
    justify-content: center;
}




```

### src/Navbar.css

```css

.navbar {
    background-color: #007654;
    color: whitesmoke ; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

.navbar ul {
    list-style: none;
    padding: 13;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 14rem;
}

.navbar li {
    padding: 10px;
}

.navbar li:hover {
    color: red;
}
  
.navbar a {
    text-decoration: none;
    color: inherit;
}

.navbar nav a.active{
    text-decoration: underline;
}

.home{
    font-size: medium;
}
```

[13 more indexed source files omitted to keep this export small. The full file list is in the Codebase structure section above.]