Skip to content

UN0wen/virtualfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VirtualFS

VirtualFS is a web application with a Golang backend and a React frontend to emulate a file system using a database (PostgreSQL).

Installation

You'll need the following: yarn, Node.js, go, and postgresql installed.

To build the project:

$ make build

Then create a database in PostgreSQL and provide these environment variables (values given here are the defaults):

Either:

  • DATABASE_URL='' : the URL used to locate the database of the form postgresql://user:password@host:port/database_name

Or all of the following:

  • DB_USER='postgres' : User used to login to PSQL
  • DB_PASSWORD='postgres' : Password of above user
  • DB_HOST='localhost' : Hostname of the database
  • DB_PORT=5432 : Port to connect to database to
  • DB_NAME='virtualfs_test' : Name of the database

Usage

Run the server and frontend with:

$ make run

Or:

$ make build && server/bin/server

Then the server can be accessed at localhost:8080, and the backend API is at localhost:8080/api.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

Virtual FS on Golang backend with React frontend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published