Copyright (c) 2021 ECL Projects
This repository contains all the front-end scripts for We To World Apps.
We are aware that many web applications are loaded in your browser without provide a clear way to check its logic and/or if there is any intrusive script.
ECL Projects provide this repository, which contains the front-end logic, styles and assets, to allow you to check what is being saved and executed in your browser at the moment you access to any of our services.
This project is licensed under the MIT License.
For now, we will be accepting merge request or/and issues reports for currently maintained features.
Our roadmap is not available for the public, so if you want to contribute with a new feature,
feel free to open a new issue in this repository to request it.
This project was bootstrapped with Create React App (not ejected yet).
Important: This project does NOT use the default application structure. Check the src folder for more details
- NodeJS >= 12 installed with your package manager, Node installer (on Windows) or with NVM
- Yarn (To install, execute:
npm i -g yarn
) - DotEnv file (.env) set in the project root. See .env.example for more details.
- An ESLint plugin/extension
- A SASS Linter
To set up this project, just execute the following commands:
git clone https://gitlab/eclprojects/w2w-apps-home w2w-apps
cd w2w-apps
And then install the dependencies:
yarn
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The respective renders will reload if you make changes. If not, reload the browser tab/s manually.
If is the case, you can also see the lint errors in the console.
Same than yarn start
, this runs the app in the development mode but using a self-signed certificate to allow HTTPS.
If you do not have a properly configured .cert
directory in the root of this project, this script will not work.
To set-up a self-signed certificate, see the following intructions:
- Homebrew (no support for BSD systems :c)
- mkcert
- nss (for Firefox use)
-
Install dependencies if they are not already installed:
brew install mkcert brew install nss mkcert -install
After running the above commands, you'll have created a certificate authority on your machine which enables you to generate certificates for all of your future projects
-
To create the
.cert
directory. In the project root execute:mkdir -p .cert
-
Now, generate the certificate:
mkcert -key-file ./.cert/key.pem -cert-file ./.cert/cert.pem "localhost"
Note: Instructions source
Now, the command should open https://localhost:3000 in your default browser.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can’t go back!
If you aren’t satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.