GSG-G10 / GSG-G10/pexel

Modularisation

Open
#32 0 comments 0 reactions 0 assignees View on GitHub
Done
Dominant language
JavaScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

You will know more about this topic in the next weeks, but having a background would be good. You need to modularise your app by breaking things into multiple files and keeping utility functions in one place and API handler functions in other.
You can split your [`handler.js`](https://github.com/GSG-G10/AutoComplete/blob/main/src/handler.js) into separate files and end up with a file structure like this:

- handlers\
- publicHandler.js
- homeHandler.js
- searchHandler
- index.js
- utils\
- filter.js
- index.js
- test\
- index.test.js
- router.js
- index.js

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading src/handler.js and identify the utility functions and API handlers it currently contains. Refactor it toward the proposed handlers/ and utils/ structure, then use test/index.test.js to check that the reorganized application still behaves as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.