This project is a simple example for express server.
This project was created using ViteJS. API call was made using axios in express
server.
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)
Using this command we install the dependencies found in the package.json
file.
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.
Starts http://localhost:5173 server on client side with ViteJS.
The application will start running on the port we specified.
Emre Kalfa (rustysym)
MIT