Skip to content

This project is a simple example for express server with vite.

License

Notifications You must be signed in to change notification settings

rustysym/reactjs-vite-express-server

Repository files navigation

ReactJS Vite Express Server

This project is a simple example for express server.

This project was created using ViteJS. API call was made using axios in express server.

"Buy Me A Coffee"

How to install

Requirements
.env Create your .env file for keys

Create the .env file in the main directory. Then write the port value in it -> PORT=3001 (You can change the port number as you wish)

npm install

Using this command we install the dependencies found in the package.json file.

npm start

After installing first we start our express server via nodemon.

Open http://localhost:3001/products to view it in your browser or change the last value according to the port you have specified from the .env file.

npm run dev

Starts http://localhost:5173 server on client side with ViteJS.

The application will start running on the port we specified.

Author

Emre Kalfa (rustysym)

License

MIT