npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

b1nd-react-app

v1.1.4

Published

React + Typescript BoilerPlate for DGSW Students made by B1ND

Downloads

1,599

Readme

DODAM_AUTH_TEMPLATE

B1ND Front-End팀이 "대구소프트웨어마이스터고등학교의 학생들이 보다 편리하게 개발을 했으면 좋겠다"라는 생각을 가지고 개발한 BoilerPlate입니다.

Folder Architecture

├─public
└─src
    ├─api
    ├─assets
    ├─components
    ├─config
      └─config.json
    ├─constants
      └─token
         └─token.constants.ts
    ├─hooks
    ├─libs
      └─axios
         ├─customAxios.ts
         ├─requestInterceptor.ts
         └─responseInterceptor.ts
      └─token
         └─token.ts
    ├─pages
    ├─queries
    ├─styles
    ├─types
    └─utils
├─webpack.config.js
├─webpack.development.js
└─webpack.production.js

HOW TO USE?

START

npx b1nd-react-app [projectname]으로 시작하실 수 있습니다. ex) b1nd-react-app [projectname] has been created successfully.라는 console과 합께 프로젝트 생성이 완료 됩니다.

USER EDITING POINT

  1. src/config/config.jsonserver속성을 자신의 API BASE_URL로 변경해주세요.
  2. src/libs/responseInterceptor.ts의 32번쨰 줄 refresh end-point를 자신의 API end-point로 변경해주세요. 또한 33번째 줄의 BODY값도 자신의 API BODY 값으로 변경해주세요.
  3. src/libs/requestInterceptor.ts의 12번쨰 줄 login url을 자신의 login url로 변경해주세요.

ETC

  • 토큰을 사용하는 과정이 다르거나 필요없다면 폴더를 삭제 하시면 됩니다
  1. 토큰의 종류는 accessTokenrefreshToken으로 구분되며, 각각 Cookie에 accessToken, refreshToken으로 저장됩니다.
  2. 토큰의 저장은 token.setToken({TOKEN_CONSTANTS}, [value]);로 하시면 됩니다. ex) token.setToken(ACCESS_TOKEN_KEY, res.data.data.accessToken);
  3. REACT 프로젝트를 FLUX 아키텍처로 개발하기 위한 폴더 구조입니다. FLUX구조란?
  4. 서버와의 통신은 react-query를 사용하시면 더욱 더 편리하게 사용 가능합니다.
  5. 번들러는 webpack을 사용하였습니다.
  6. 추후 globalStyleslayout도 추가 할 예정입니다.