micaiah-effiong / File-share

A simple HTTP server for sharing(uploading and downloading) files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File-share

This project helps to transfer file over HTTP/HTTPS

Clone the repo

git clone https://github.com/micaiah-effiong/File-share.git

cd File-share

Install node modules

To install all dependencies execute

npm install

Adding dependencies with lerna can be done be executing

npm run bootstrap

Installing packages

The project uses lerna and workspace so to install packages you have the specify the workspace name

lerna add <package name> --scope=@share-box/server

To install module as root

lerna add <package name>

Start all dev server

Depending on you package manager run the following instructions

# client
yarn client:dev
# or
npm run client:dev

# server
yarn server:dev
# or
npm run server:dev

you can also run but server in development mode

yarn dev
# or
npm run dev

Setup environment variables

In the client folder create a file called .env.[mode].local and add the following. Mode is either development or production depending on the mode you want to run the app in. See Vitejs documentation for more details on .env files

In development mode, add the external API url of the server to fetch data from.

Build and compile to JS

yarn build
# or
npm run build

Start the server

yarn start
# or
npm run start

About

A simple HTTP server for sharing(uploading and downloading) files

License:MIT License


Languages

Language:Vue 46.6%Language:TypeScript 46.1%Language:JavaScript 5.4%Language:CSS 1.4%Language:HTML 0.4%Language:Shell 0.1%