File-Sharing-System

File Sharing System

Basic Overview

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.

Details for Nerds

The project has two parts :-

  1. NodeJS server which will have the NAS device
  2. 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!

Setup config file and Storage folder

Change the following in the config.json file:

  1. serverUrl – Mention the IP of the machine where server is running along with port (3001)
  2. storagePath – Mention the relative storage path from Server/source/modules

Make sure you create a folder for storage before building the code

Setup guide (Dev mode)

Server

  1. yarn
  2. yarn dev
  3. yarn devServe

Client

  1. yarn
  2. yarn dev

Setup guide (Prod mode)

Server

  1. yarn
  2. yarn prod
  3. yarn prodServe

Client

  1. yarn
  2. yarn prod
  3. serve -s prod

Run the React web app:

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.

Developers:-

Sparsha Saha

Sourjya Mukherjee

Visit original content creator repository
https://github.com/SparshaSaha/File-Sharing-System

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *