Skip to content

A basic Web App where you can upload files and protect them with a password

Notifications You must be signed in to change notification settings

Eiliv17/FileVaultWebApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Vault Web App

A simple web app to password lock your files.

Table of Contents
  1. About The Project
  2. Getting Started

About The Project

This is a simple project that allows you to upload a file on the web server and use a password to protect it, later you can download your file if you chose the correct password.

This project was build with the Gin framework and the Go programming languages. This still needs a design rework with support for mobile devices and maybe some code refactoring but as of now the app works.

(back to top)

Built With

This project was built with the following technologies:

  • HTML
  • CSS
  • Golang
  • MongoDB

(back to top)

Getting Started

Before you run the app you need to have the following:

  • MongoDB Server
  • .env File

(back to top)

MongoDB Server

You need to have MongoDB installed on your machine, if you don't have it installed you can download the installer at the following link.

This link is for the community version of MongoDB, once you've completed the installation process, it should be already up and running.

(back to top)

.env File

In the root of your project folder you also need to create a .env file which will load the environment variables that are needed for the web app to work.

The app requires the following environment variables:

Variable Description
PORT The HTTP server port
MONGODB_URI The URI for connecting to your MongoDB server
DB_NAME The name of the database (inside MongoDB) where you want to store the files
FILE_DIR The name of the directory where the uploaded files will be stored

Here's an example of the .env file:

PORT=3000
MONGODB_URI= mongodb://127.0.0.1:27017/
DB_NAME=VaultWebApp
FILE_DIR=filedb

(back to top)

Usage

If you've followed the getting started correctly, you'll then be able to run the application by just compiling and running the main.go file.

(back to top)

About

A basic Web App where you can upload files and protect them with a password

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published