This codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API. Powered by FSD (Feature-Sliced Design) architectural methodology.
The example application is a social blogging site (i.e. a Medium.com clone) called "Conduit". It uses a custom API for all requests, including authentication.
General functionality:
The general page breakdown:
This project was bootstrapped with Create Vite
To get the frontend running locally:
yarn install
to install all the dependencies defined in a package.json
file.yarn dev
to start Vite dev server.yarn dev
- start a development server with hot reload.yarn build
- build for production. The generated files will be on the dist folder.yarn preview
- locally preview the production build.yarn lint
- run ESLint.yarn lint:perf
- run ESLint and track the performance of individual rules.yarn prettier
- run Prettier on changed files.yarn prettier:all
- run Prettier on all files.yarn test:run
- run all test suites.yarn test:watch
- run all test suites but watch for changes and rerun tests when they change.yarn test:coverage
- run all test suites and enable coverage report.yarn test:coverage:open
- run all test suites and enable coverage report then open coverage report in browser.yarn dep-cruiser:preview
- create a graph of the dependencies[^1][^1]:
This assumes the GraphViz dot
command is available - on most linux and
comparable systems this will be. In case it's not, see
GraphViz' download page for instructions
on how to get it on your machine.