Posts

Showing posts with the label File Server with node.js and Express web framework

Code Practices about a File Server creation, sending and receiving files via Node.js + React +TypeScript + Express web framework

Hello,
I would like to share sample codes for a file server and some samples how to send and receive JSON files by utilizing Node.js + React Native + Typescript + Express Web framework.you can download the codes and take them as a sample where you want to use.File Server codes are in following link:https://github.com/TheMaty/fileserver
It utilizes Express Web Framework for Node.js. 
All dependent modules are already defined in my github repository so Once you download it, you will be able to run with npm start immediately. Service is going to settle to default port 8000 .

File Server is configured for sending and receiving for JSON formated files However, you can also manipulate codes for any type of file. 
Call can be done as below:
http://<server name>:8000/api/download?filename=<file name>.json There is a code sample regarding file retrieval in the following link: https://github.com/TheMaty/receivefile
It fetches json object from file server then binds JSON objects to a table th…