File sharing web platform -- stores data and can be used to share files with firebase authentication , PDF encryption and custom express api's
- HTML : Markdown
- CSS : Styling Markdown
- Javascript : Plain Javascript in frontend
- EJS : Templating Engine
- Node JS : Backend Server which works on V8 engine of Javascript
- Express JS : Backend Framework
- Mongo DB : Database
- Firebase : Used for authentication of users
Clone the project
git clone https://github.com/Mr-Internetix/file-sync.git
Go to the project directory
cd file-sync
Install dependencies
npm install
Start the development server
npm run dev
To run this project, you will need to add the following environment variables to your .env file
MONGO_CONNECTION_URL = your mongo-db atlas api key
APP_BASE_URL = http://localhost:3000
you-can change it when deployment use your domain name
PORT = 8000
not mandatory but use it for safer side
Its simple just add the json file Downloaded from the firabase platform with file-name
serviceAccountKey.json in your root folder of the project i.e next to - server.js file
var firebaseConfig = {
// add your firebase configuration
};
/public/js/index.js
, /public/js/user.js
const host = "https://localhost:3000"
Just add the Database url in .env file ( I expect that mongo will create the collections automatically if not, create manually by creating three collections i.e
- users
- files
- userfiles
MIT License.
You can use this project for free without notifying me by forking this project under the following conditions:
- Add a link to my Repository or my-profile
- Star the repository