Sup Nerds!
Using the best possible agile practices, we have created a cutting edge app that tests your knowledge of Kanji. If you can successfully match all of the cards with their correct partners then you win the coveted right to add your name to the highscore list. Strangers walking down the street will have to pick their jaws up off the floor as you walk by and they will cry themselves to sleep at night, praying that they too could achieve this feat.
The game allows you to select two cards and, if they match, they remain face up. If the cards do not match, then the cards will turn back over.
Currently you can cheat in the game, though if you do you should take a long hard look in the mirror and think about what you have done. Something you could do to remedy this shame is to implement a fix to prevent cheaters like you from taking advantage.
We updated some feature;
in frontend
*Creates React Components
*Cheating disabled as a feature
*Add Leaderboard
*Fixed Submit Button
in backend
*Cleans up DB
*Adds MORE Kanji
Start psql
in a new terminal.
In your psql terminal please run the following code to create a database:
CREATE DATABASE kanji_kards;
Next create an .env
file:
create a file .env.local
Inside the file please use the following code:
DB_NAME=kanji_kards
DB_USER=
DB_PASSWORD=NULL
In your non-psql terminal, run the following commands:
npm run migrate
or npx knex migrate:latest
to create tables.
npm run seed
or npx knex seed:run
to run the seed.
Be sure to check your tables in psql to check if you have migrated and seeded correctly!
In the project directory, you can run:
Runs the app in the development mode.
Open 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.
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.
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify