A very innocent Autocorrect implementation on a web-based file editor.
git-autocorrect---force
is a unique type of autocorrector, especially useful for those who just can't seem to spell correctly. It corrects any misspelled words but also "incorrects" words that are spelled correctly, forcing you to purposely write the incorrect spelling. It comes with various modes depending on the severity of your dyslexia.
- Node.js 20+
-
Clone the repository and navigate into it:
git clone https://github.com/Ekuspreet/git-autocorrect---force cd git-autocorrect---force
-
Install the required Node packages:
npm install
-
Run the web-based editor:
npm run watch
-
Visit
http://localhost:3000
in your browser to start using the editor.
- Node.js
- Express.js
- EJS
- Tailwind CSS
- DaisyUI
- configurations/: Contains configuration files for project settings.
- controllers/: Contains all server-side functions.
- middleware/: Middleware files.
- public/: Contains all static files.
- routes/: Route definitions for the API and web.
- utils/: Contains autocorrection logic.
- views/: Contains all HTML files.
- Naming Files:
fileName.containingFolder.extension
- Naming Folders: lowercase
- Import Aliases: Defined in
package.json
(e.g.,/utils
is@utils
). - Naming Modules: camelCase
- Naming Variables: lower_snake_case
- Global Variables: UPPER_SNAKE_CASE
- API routes should be placed under
/api
. - Web routes should be placed under
/web
. - Use
text-text-text
for naming routes. Eg: /api/autocorrect
- Always create a local branch (with no upstream, as we don't want to see your embarrassing commit history).
- Always pull before working on a feature:
git checkout main git pull
- Merge changes into your branch:
git checkout <your-branch> main
- Make commits on this local branch.
- Merge commits into the
main
branch and push to remote. - If it asks to rebase, do it.
Use the following tags:
- feat: New feature
- chore: Enhancement, but not a new feature
- bug: Bug fix
- test: For testing
- unstable: Unstable commit (don't do it)
- misc: Miscellaneous