This project built a String generator app in TypeScript.
Refer to https://nodejs.org/en/ to install nodejs
Clone the project into local
git clone https://github.com/akrabulislam/Random-Generator-App.git
cd Random-Generator-App
npm install or yarn install
npm run dev or yarn run dev
Server runs on http://localhost:5000
cd client
npm install or yarn install
npm start or yarn start
Client runs on on http://localhost:3000
- It will generate a text file of random strings of size 2 MB (2,097,152 bytes)
- Download the text file
- Count the frequency of each type of strings
- Alphabetic (ex : aaa,abcAe, DDDD ...)
- Integers (ex : 1234,83049840,83948 ...)
- Real Numbers (ex : 1.012,123445,1111.293 ...)
- Alphanumerics (ex : aa123a,1DSA3, add0 ...)
NOTE
File size may be differ because , The size on the disk is the indicator of how much space a file occupies on the hard disk drive. When a file is stored in a modern storage device, it usually consumes slightly more storage than the actual file. That's the reason why you see the difference between size vs size on disk.
Source : https://superuser.com/questions/66825/what-is-the-difference-between-size-and-size-on-disk
- Clicking on
Generate
button , will generate a file of random strings of size 2 MB. - Clicking on
Link
, will download the file. - Clicking on
Report
button , will show the count of each type of string.- Alphabetic
- Contains
a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z
- Example
abdie,diauekdh,aaaidue,aki,ei...
- Contains
- Integers
- Contains
0,1,2,3,4,5,6,7,8,9
- Example
31837,938,8,928,1,2...
- Contains
- Real Numbers
- Contains
0,1,2,3,4,5,6,7,8,9
- Example
1.2,938,8.9,9289.4758,12...
- Contains
- Alphanumerics
- Contains
a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,0,1,2,3,4,5,6,7,8,9
- Example
kaidu12,ok48,akdiuehn98,898dairi....
- Contains
- Alphabetic
- Unified modeling across web client and server for objects
- Type safety, and easy refactoring of typed code across web client and server
- A superior developer experience in a team environment