Giter VIP home page Giter VIP logo

kanji-memory-game's Introduction

Kanji Kards

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.


Kanji Kards 2.0

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

Setting up your local Database

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!


Setting your Server

In the project directory, you can run:

npm start will start the React Dev Server.

npm run server will start the Express server.

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.

npm run eject will eject the project.

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.

Deployment

This section has moved here: 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

kanji-memory-game's People

Contributors

juliwithoutthee avatar lzs95 avatar mikako-shirai avatar sodajyu avatar stk-m avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.