This project is a news advertising application developed with Vite, React and Express.
Make sure to set the following environment variables in a .env
file in the project root:
### News site (options: reuters, elpais, cnn)
VITE_SITE=site
### Home page URL
WEB_URL=page_url
### Specific page
VITE_PAGE_LOAD=specific_page
### GraphQL API URL
VITE_GRAPHQL_API_URL=api_url
VITE_SITE=reuters
WEB_URL=https://www.reuters.com/
VITE_PAGE_LOAD=business/
VITE_GRAPHQL_API_URL=https://....
- Clone this repository.
- Install dependencies using
npm
:
npm install
In the project directory, you can run:
Run the application in development mode.
Open http://localhost:3000 to view it in your browser.
Build the application for production in the dist
folder.
Build the client part for production in the dist/client
folder.
Build the server part for production in the dist/server
folder.
Provides for the application being built in production mode.
This project is licensed under the MIT License. See the LICENSE
file for details.