This is the second alpha project. It is a website that allows the user to upload a text file and then shorten it (or make it longer) based on user's criteria. The processing is done by a backend written in . The website is written in , and .
Hey, listen! The shortening is also case-insensitive.
This project was made by Matyáš Závora (me)
Percent score | 70% |
---|---|
Czech grade | 2 |
Configurability and universality | 85% |
Architecture and design patterns | 40% |
Usability and program control | 63% |
Correctness and efficiency | 83% |
Testing and error handling | 66% |
Documentation and code readability | 100% |
- ( or any other web server)
- 7.4 (or higher)
- A web browser
- A text file to shorten
- (Optional) Access to the internet ( for )
- Open or any other web server
- Clone this repository into the
htdocs
folder of - Start (Apache should be enough) (default port is 80)
- Open
localhost[:port]/alpha2
in your browser
- Clone this repository into
/var/www/html
- Start Apache (default port is 80)
- Open
localhost[:port]/alpha2
in your browser
If you get a permission error, run sudo chmod -R 777 /var/www/html/alpha2
and sudo chown -R www-data:www-data /var/www/html/alpha2
.
This will give the web server full access to the folder.
- Open the website in your browser (see Installation)
- Click on the
Choose file
button - Select a text file
- Fill out The mighty table of shortages
- (Optional) Change the name of the output file
- Click on the
Shorten!
button - Wait for the website to process the file
- Select a location to save the processed file
- Click on the
Save
button
Lorem ipsum dolor sit amet.
Shortage | Replacement |
---|---|
Lorem | L |
ipsum | i |
dolor | d |
sit | s |
amet | a |
L i d s a.
- Write
README.md
- Turn assignment in on Moodle in time
- Make sure everything works
- Make sure everything is documented
- Change assignment button placement
- Make file input accept only text files
- Change style of file input
- Make submit button appear only when file is uploaded
- Change button style (add more space in between)
- Implement text input for name of output file
- Make submit button work
- Make file input work
- Make text input work (name of output file)
- Output processed file (website starts downloading it)
- Make processing case-insensitive
- Fix file deletion from server
- Add unit tests
- Add "show logs" button
- Routes to a page that shows logs