Giter Club home page Giter Club logo

korean-json's Introduction

korean-json

Super simple JSON API serving fake data in Korean. See korean-json in action.

What is Korean JSON?

Request GET, POST, PUT, DELETE actions and get JSON data in Korean to get the most out of the look and feel of Korean language when prototyping your project.

한국어 데이터를 제공하는 초간단 JSON API. GET, POST, PUT, DELETE 요청을 보내고 한국어 데이터를 받으세요. 라틴어이자 알파벳 문자인 로렘입섬 대신 한글 데이터를 사용하면 프로토타이핑을 조금 더 현실적인 환경에서, 조금 더 빠르고 즐겁게 할 수 있습니다.

Credit

This project is heavily inspired by JSONPlaceholder of which we have been big fans for a long time. 저희는 JSONPlaceholder의 오랜 사용자이자 팬으로서 한국어 사용자들을 대상으로 제작하였습니다.

How to Contribute

1. Fork this repository

2. git clone your remote repository into your local machine

3. Basic setup

  1. $ cd korean-json

  2. Install modules $ npm install

  3. (Important) Change database credentials

    Open up config/db.json file which holds database credentials. Modify username and password values in the development environment as follows.

    "development": {
        "username": "<YOUR_DATABASE_USERNAME>",
        "password": "<YOUR_DATABASE_PASSWORD>",
        "database": "koreanjson_development",
        "host": "127.0.0.1",
        "dialect": "mysql"
      }
  4. Create local database

    Once you run the following script

    $ node_modules/.bin/sequelize db:create
    # If you prefer npx:
    # npx sequelize db:create

    a local database called koreanjson_development should be created.

4. Start server

npm run dev

5. Commit your work and push to your local repository.

6. Create a pull request

korean-json's People

Contributors

flyingsquirrel-dev avatar jd1386 avatar wallypark710 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

korean-json's Issues

Should change local setup instruction, because MySQL version and password issue

Follow your basic setup instruction, I occurred two error in create db.

  1. MySQL version issue > 8.0
$ node_modules/.bin/sequelize db:create

ERROR: Client does not support authentication protocol requested by server; consider upgrading MySQL client

It occurs when I follow your setup instruction and find why it occurs because MySQL uses new authentication plugin caching_sha2_password but, Node.js driver MySQL don't support this plugin not yet.
(https://stackoverflow.com/questions/50373427/node-js-cant-authenticate-to-mysql-8-0/50377944#50377944)

So, I alter root user to older authentication plugin for works Sequelize.

$ mysql -uroot 

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '<mypassword>';
  1. MySQL root password incorrect in local and config.json environments
$ node_modules/.bin/sequelize db:create

ERROR: Access denied for user 'root'@'localhost' (using password: NO)

This error resolve with change development environment password in config.json

config/config.js 
{
  "development": {
    "username": "root",
    "password": "<mypassword>",
    "database": "koreanjson_development",
    "host": "127.0.0.1",
    "dialect": "mysql"
  },
  ...
}

And everything is fine.

I'm not sure this error occurs only to me and those are best solutions, but please consider this issues.

Thank you.


Environment :
OS: Mac High Sierra 10.13.6
Node: 10.14.2
Sequelize CLI: 5.4.0
ORM: 4.42.0
mysql: 8.0.15 for osx10.13 on x86_64 (Homebrew)

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.