-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jdrush89 patch 5 #6
Open
jdrush89
wants to merge
19
commits into
master
Choose a base branch
from
jdrush89-patch-5
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
46d6a1f
Initialize basic React app
jdrush89 e3ca394
hi
jdrush89 846b4e3
7ec8b0a
Updates from editor
jdrush89 1d1d8d8
Updates from editor
jdrush89 9315945
Updates from editor
jdrush89 bc3d183
Updates from editor
jdrush89 c5ca5aa
Merge pull request #7 from jdrush89/jdrush89-patch-6
jdrush89 86106a2
Revert "Updates from editor"
jdrush89 529fdc1
Merge pull request #8 from jdrush89/revert-7-jdrush89-patch-6
jdrush89 06e1d79
Updates from editor
jdrush89 81a49e6
Updates from editor
jdrush89 095dee6
Updates from editor
jdrush89 bd23e4c
Updates from editor
jdrush89 c0d6255
Fix typo in README title and heading
jdrush89 261b230
Fix typo in README title and heading
jdrush89 ac8e69b
Updates from editor
jdrush89 c293528
Remove azure-pipelines.yml and update package-lock.json
jdrush89 58669e1
Remove azure-pipelines.yml and update package-lock.json
jdrush89 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,34 @@ | ||
# rws | ||
# Universe React App 333dv[] | ||
wf | ||
This project is a basic React application that displays an index page. It serves as a starting point for further development and exploration of React and its capabilities. | ||
|
||
[rws](https://rws8.pp.ua/) — fast, reliable and secure webserver. | ||
## Getting Startedd | ||
|
||
Fast. Compiled to native binary for maximum performance. | ||
To run this React app locally, follow these steps: | ||
|
||
Reliable. Does not rely on garbage collector, no performance degradation. | ||
1. Clone the repository to your local machine. | ||
2. Navigate to the project directory in your terminal. | ||
3. Run `npm install` to install all the necessary dependencies. | ||
4. Once the installation is complete, run `npm start` to launch the app in development mode. | ||
5. Open [http://localhost:3000](http://localhost:3000) to view it in your browser. | ||
|
||
Secure. Provides read-only access to files, eliminating most of the attacks. | ||
The page will reload if you make edits. You will also see any lint errors in the console. | ||
|
||
## Download | ||
Download binary from [Google Drive](https://drive.google.com/drive/folders/13iSR3VxmfFvZgOZ0LddP_EJp7GJ-lQd8?usp=share_link). | ||
|
||
|
||
## Installation | ||
Open [INSTALL](INSTALL.md) for details. | ||
|
||
|
||
## Configuration | ||
Open [CONFIGURE](CONFIGURE.md) for details. | ||
|
||
## Frequently Asked Questions | ||
Open [FAQ](FAQ.md) for details. | ||
## Features | ||
|
||
## Documentation | ||
Open [documentation](src/README.md) for details. | ||
- Displays a simple index page with a welcoming message. | ||
- Ready to be expanded with additional components and functionality. | ||
|
||
## Development | ||
Open [DEVELOPER](DEVELOPER.md) for details. | ||
|
||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
|
||
## Community | ||
Use GitHub [discussions](https://github.com/bohdaq/rust-web-server/discussions), [issues](https://github.com/bohdaq/rust-web-server/issues) and [pull requests](https://github.com/bohdaq/rust-web-server/pulls). | ||
For more information on how to perform common tasks, you can find the Create React App documentation [here](https://facebook.github.io/create-react-app/docs/getting-started). | ||
|
||
There is Rust Web Server [Discord](https://discord.gg/zaErjtr5Dm) where you can ask questions and share ideas. | ||
## Contributing | ||
|
||
Follow the [Rust code of conduct](https://www.rust-lang.org/policies/code-of-conduct). | ||
Contributions are welcome! Please feel free to submit a pull request or open an issue for any improvements or feature requests. | ||
|
||
## License | ||
|
||
## Features | ||
1. [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS). Allowing resources to be used on other domains can be crucial for providing APIs and services. Knowing how cumberstone and difficult is the process to setup the CORS, server ships with CORS enabled to all requests by default. | ||
1. [HTTP Range Requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests). Server supports requests for the part of the file, or several different parts of the file. | ||
1. [HTTP Client Hints](https://developer.mozilla.org/en-US/docs/Web/HTTP/Client_hints). Proactively asking client browser for suitable additional information about the system. | ||
1. [X-Content-Type-Options](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options) set to nosniff, prevents from MIME type sniffing attacks. | ||
1. [X-Frame-Options](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options). Site is not allowed to be embedded into iframe on other domains. | ||
1. [Symlinks](https://en.wikipedia.org/wiki/Symbolic_link). You can have symlinks in your folder and they will be resolved correctly. | ||
1. [Caching](https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching#dealing_with_outdated_implementations) done right. It means no caching and therefore no outdated uncontrollable resources. | ||
1. Resolving .html files without .html in path. It means if you try to open /some-html-file it will open file some-html-file.html and won't show 404 not found error. Same applies for folders. If you try to open /folder it will open file folder/index.html | ||
1. Extensive logging. It means server prints the request-response pairs as they are so you can see all the details like request method, path, version and headers. | ||
1. No third party dependencies. | ||
|
||
## Donations | ||
[PayPal](https://www.paypal.com/donate/?hosted_button_id=7J69SYZWSP6HJ) page to send donations, so I can buy some whole plant food, or open vinyl pressing facility or spend my time snowboarding, whatever. | ||
|
||
## Links | ||
1. [Rust TLS Server](https://github.com/bohdaq/rust-tls-server) | ||
1. [http-to-https-letsencrypt](https://github.com/bohdaq/http-to-https-letsencrypt) | ||
1. [Rust Web Framework](https://github.com/bohdaq/rust-web-framework/) | ||
1. [crypto-ext](https://github.com/bohdaq/crypto-ext/) | ||
1. [file-ext](https://github.com/bohdaq/file-ext/) | ||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "universe-react-app", | ||
"version": "1.0.0", | ||
"description": "A basic React app to show an index page.", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject" | ||
}, | ||
"dependencies": { | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-scripts": "4.0.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.14.6", | ||
"@babel/preset-env": "^7.14.5", | ||
"@babel/preset-react": "^7.14.5" | ||
}, | ||
"license": "MIT", | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>React App</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react'; | ||
|
||
function App() { | ||
return ( | ||
<div> | ||
<h1>Welcome to the Universe</h1> | ||
<p>This is the index page of our new React app.</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default App; | ||
SVGDefsElement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import App from './App'; | ||
|
||
ReactDOM.render( | ||
<React.StrictMode> | ||
<App /> | ||
</React.StrictMode>, | ||
document.getElementById('root') | ||
//test | ||
); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.