├── server
├── .gitignore
├── .env.example
├── config
│ └── index.js
├── models
│ ├── move.js
│ └── pokemon.js
├── package.json
├── index.js
├── api
│ └── index.js
└── package-lock.json
├── client
├── public
│ ├── _redirects
│ ├── robots.txt
│ ├── favicon.ico
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
│ └── index.html
├── src
│ ├── components
│ │ ├── Move
│ │ │ ├── style.css
│ │ │ └── index.jsx
│ │ ├── Navbar
│ │ │ ├── index.jsx
│ │ │ └── style.css
│ │ ├── Type
│ │ │ └── index.jsx
│ │ └── PokemonCard
│ │ │ ├── style.css
│ │ │ └── index.jsx
│ ├── setupTests.js
│ ├── App.test.js
│ ├── API.js
│ ├── index.css
│ ├── reportWebVitals.js
│ ├── index.js
│ ├── App.js
│ ├── pages
│ │ ├── style.css
│ │ ├── ViewPokemon.jsx
│ │ └── CreatePokemon.jsx
│ ├── App.css
│ └── logo.svg
├── .gitignore
├── package.json
└── README.md
└── README.md
/server/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .env
3 |
--------------------------------------------------------------------------------
/server/.env.example:
--------------------------------------------------------------------------------
1 | PORT=
2 | DATABASE_URL=
3 |
--------------------------------------------------------------------------------
/client/public/_redirects:
--------------------------------------------------------------------------------
1 | /* /index.html 200
2 |
--------------------------------------------------------------------------------
/client/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/client/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acmucsd/hackschool-fa20/HEAD/client/public/favicon.ico
--------------------------------------------------------------------------------
/client/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acmucsd/hackschool-fa20/HEAD/client/public/logo192.png
--------------------------------------------------------------------------------
/client/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acmucsd/hackschool-fa20/HEAD/client/public/logo512.png
--------------------------------------------------------------------------------
/client/src/components/Move/style.css:
--------------------------------------------------------------------------------
1 | .pokemon-move td {
2 | padding: 2px;
3 | }
4 |
5 | .move-type {
6 | font-weight: bold;
7 | border-radius: 3px;
8 | }
--------------------------------------------------------------------------------
/server/config/index.js:
--------------------------------------------------------------------------------
1 | const dotenv = require('dotenv');
2 |
3 | dotenv.config();
4 |
5 | const config = {
6 | PORT: process.env.PORT,
7 | databaseUrl: process.env.DATABASE_URL,
8 | }
9 |
10 | module.exports = config;
11 |
--------------------------------------------------------------------------------
/client/src/setupTests.js:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom';
6 |
--------------------------------------------------------------------------------
/client/src/App.test.js:
--------------------------------------------------------------------------------
1 | import { render, screen } from '@testing-library/react';
2 | import App from './App';
3 |
4 | test('renders learn react link', () => {
5 | render(
{props.name}
33 |{props.description}
34 |35 | {props.type1} 36 | {props.type2} 37 |
38 |Moves:
39 |