Web application developed to search and show emails fetched from a Backend application powered by a search engine.
- Node 22 →link
Variable | Description | Default Value |
---|---|---|
SERVICE_HOST | Defines the URL of the API used to fetch the emails data | http://localhost:3000 |
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
There are 2 way to build this application.
Execute the following command:
npm run build
ⓘ NOTE: The output of this command can be found at
/dist
directory.
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.
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 ❤️!