Skip to content

Latest commit

 

History

History

client

logo-vue logo-typescript
Email Searcher WebApp

Web application developed to search and show emails fetched from a Backend application powered by a search engine.

desktop phone1 phone2

📄 Requirements

🌐 Environment Variables

Variable Description Default Value
SERVICE_HOST Defines the URL of the API used to fetch the emails data http://localhost:3000

🧩 Development

Firstly, you must fetch the dependencies by using the following command:

npm install

Later, you must serve locally by using the following command:

npm run dev

🏗️ Build

There are 2 way to build this application.

Node Cli

Execute the following command:

npm run build

ⓘ NOTE: The output of this command can be found at /dist directory.

Docker

You can build a docker image by using the following command (Changing the "{service_url}" and the "{image_name}"):

docker build --build-arg="SERVICE_HOST={service_url}" -t {image_name} .

ⓘ NOTE: You must have docker installed in your environment.

➕ Additional Information

To avoid "CORS Errors" during the Preflight Request, there was configured a proxy across "Vite Configuration", but this proxy only works when you run the development server. To keep this configuration, there was also configured a proxy across "Nginx Configuration". In both cases you must to pass the SERVICE_HOST environment variable.

😊 Made with ❤️!