https://github.com/mohit-s96/twitter-user-mentions
SImple UI with JSON server which uses runtime JS parsing of a text body to find '@' user mentions.
https://github.com/mohit-s96/twitter-user-mentions
Last synced: about 2 months ago
JSON representation
SImple UI with JSON server which uses runtime JS parsing of a text body to find '@' user mentions.
- Host: GitHub
- URL: https://github.com/mohit-s96/twitter-user-mentions
- Owner: mohit-s96
- Created: 2020-09-28T07:52:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-28T09:02:56.000Z (over 4 years ago)
- Last Synced: 2025-02-08T21:45:49.688Z (3 months ago)
- Language: JavaScript
- Size: 340 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple UI with Vanilla JS/CSS and JSON server as backend which uses runtime JS parsing of a text body to find '@' or '#' user mentions.
I made this as a part of learning Javascript DOM and fetch API. The mention part was just something I was curious of so I tried it myself.
To run
## Available Scripts
In the project directory, you can run the following to install dependencies:
### `npm install`
To run the app in the development mode.
### `npm run start`
Open [http://localhost:8080](http://localhost:8080) to start the webpack dev server in the browser.
### `npm run json:server`
To run JSON Server for fake rest API
Parse @ mentions or # mentions
Apply more rules or customizations in src/ui.js parseBody
