A very simple HTTP server for uploading content used for photos sharing between phone and PC.
This project allows you to upload images and display thumbnails using a simple web interface. It's built with TypeScript for both the server and client components.
- Node.js installed on your machine
- Git installed on your machine
git clone https://github.com/your-username/your-repo.git
cd your-reponpm installnpm run buildnode dist/photo-server.jsThis will start the server at http://localhost:3000.
Open your web browser and go to http://localhost:3000 to access the webpage - on different devices, please replace the localhost with the IP of the PC hosting the server, e.g.: http://192.168.0.3:3000.
Click on the "Choose File" button to select images from your local machine.
Thumbnails of the selected images will be displayed on the page immediately.
Click on the "Upload Photos" button to simulate the upload process. The thumbnails will move to the "uploaded" section.
Customize the project as needed for your specific use case.
Feel free to reach out if you have any questions or encounter issues.
Happy coding! 🚀