This repository aims at creating a Network Attached Storage(NAS) which would work for local wifi networks only at the moment. Though there are tons of tools and existing softwares which already do this, but we thought of taking this up as a side project just for the sake of learning.
The project has two parts :-
- NodeJS server which will have the NAS device
- Client Side React Web Application which will internally perform interactions with the server
Question: Why did we choose NodeJS and React?
Answer: You know the reasons :P.
We will use webpack for bundling our source code for the Server as well as the Client.
Question: Why use webpack?
Answer: Honestly speaking, it is the only module bundler I know how to use. And also it's pretty great!
Change the following in the config.json file:
serverUrl
- Mention the IP of the machine where server is running along with port (3001)storagePath
- Mention the relative storage path fromServer/source/modules
Make sure you create a folder for storage before building the code
yarn
yarn dev
yarn devServe
yarn
yarn dev
yarn
yarn prod
yarn prodServe
yarn
yarn prod
serve -s prod
In dev mode, appserver runs at http://localhost:8080
In prod mode, appserver will show url after running serve -s prod
. Use that url to run the app on any machine connected to your LAN.
Sparsha Saha
Sourjya Mukherjee