Git Product home page Git Product logo

dictionary's Introduction

소개

한국의 신조어를 등재할 수 있는 오픈 사전입니다.

안내

가능하면 모바일에서 링크를 클릭해주세요.
모바일 페이지 디자인만 적용되어 있습니다.

현재 깃허브 로그인만 가능합니다.

로그인을 하지 않아도

  1. 새로운 단어 등록
  2. 댓글 작성
  3. 좋아요
  4. 단어 저장
  5. 등록한 단어 기록 컴포넌트 활성화

를 제외한 모든 기능을 사용할 수 있습니다.

Front

Next.js + Styled Components

Back

Next.js + AWS RDS (MySql + Prisma)

Deployment

Vercel

dictionary's People

Contributors

ordinaryprobably avatar

Watchers

 avatar

dictionary's Issues

Query is lost when refresh search page.

When you search a keyword, you are sent to /search/[keyword] route and that page sends request to /api/search with keyword.
It works fine until you refresh the page.

/pages/search/[word].js

export default function SearchResults() {
  const [result, setResult] = useState([]);
  const router = useRouter();

  useEffect(() => {
    async function fetcher() {
      const results = await axios.post(`/api/search`, {
        keyword: router.query.word         ----> router.query.word becomes 'undefined'
      });

      setResult(results.data.data);
    }

    if(router && router.query) {
      fetcher();
    }
  }, [router]);

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.