diff --git a/README.md b/README.md index 4e63b23..323d7e4 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 9b70d91..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,40 +0,0 @@ -# Starter pipeline -# Start with a minimal pipeline that you can customize to build and deploy your code. -# Add steps that build, run tests, deploy, and more: -# https://aka.ms/yaml -#test23 - -trigger: -- master - -pr: -- master - -resources: - repositories: - - repository: self - ref: 'refs/heads/master' - - repository: scripts - type: github - name: jdrush89/Card-Game - ref: 'refs/heads/master' - endpoint: JoshGithub - - repository: sources - type: github - name: jdrush89/Bindisk - ref: 'refs/heads/master' - endpoint: JoshGithub - -jobs: -- job: multirepo - pool: 'default' - steps: - - checkout: self - clean: true - path: yaml - - checkout: scripts - clean: true - path: src - - checkout: sources - clean: true - path: src diff --git a/docs/CODEOWNERS b/docs/CODEOWNERS deleted file mode 100644 index b2878f8..0000000 --- a/docs/CODEOWNERS +++ /dev/null @@ -1,2 +0,0 @@ -*.js sdfgsdfg -*.png @jdrush89 diff --git a/docs/file.md b/docs/file.md deleted file mode 120000 index 522a9b9..0000000 --- a/docs/file.md +++ /dev/null @@ -1 +0,0 @@ -../file.md \ No newline at end of file diff --git a/docs4/asiu b/docs4/asiu deleted file mode 100644 index 8b13789..0000000 --- a/docs4/asiu +++ /dev/null @@ -1 +0,0 @@ - diff --git a/package.json b/package.json new file mode 100644 index 0000000..deab78a --- /dev/null +++ b/package.json @@ -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" + ] + } +} diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..1cddf7f --- /dev/null +++ b/public/index.html @@ -0,0 +1,11 @@ + + + + + + React App + + +
+ + diff --git a/src/App.js b/src/App.js new file mode 100644 index 0000000..71fd782 --- /dev/null +++ b/src/App.js @@ -0,0 +1,13 @@ +import React from 'react'; + +function App() { + return ( +
+

Welcome to the Universe

+

This is the index page of our new React app.

+
+ ); +} + +export default App; +SVGDefsElement diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..7075830 --- /dev/null +++ b/src/index.js @@ -0,0 +1,11 @@ +import React from 'react'; +import ReactDOM from 'react-dom'; +import App from './App'; + +ReactDOM.render( + + + , + document.getElementById('root') + //test +);