This project is an Express application that serves both an API and static files from the dist directory. The frontend is built using a separate build process and copied over to the backend's dist directory.
- Serves static files
- Proxy configuration for API requests
- CRUD operations for contacts
-
Clone the Repository:
git clone https://github.com/stephen-lakes/part3-exercises-backend.git cd part3-exercises-backend -
Install Dependencies:
npm install
-
Build the Frontend:
npm run build:ui
-
Start the Server:
npm start
- The server uses a proxy configuration to forward API requests to
http://localhost:3001.
To run the application locally, use:
npm startapp live at🚀: https://part3-exercises-backend.onrender.com/