A node.js server to allocate files!
Explore the docs »
Table of Contents
Login page
Register page
Home page
Click a image to display its content
Click a text document to view and edit it
- I've created this project for fun, and it's a nodeJS file server that you can access it via a webpage, it has a login and manages users accounts and the data that users could store in the cloud. This is basically a onedrive or google drive clone if you will.
-
npm
npm install npm@latest -g
-
Mongo database: You can create your free cluster to get started here here or install a local database.
-
pm2 (optional)
npm install pm2 -g
- Clone the repo.
git clone https://github.com/FranciscoDadone/FileServer
- Edit the port of the app in
docker-compose.yml
file (default: 3000) - Launch the app.
docker-compose up -d
- If you want to change the port (default: 3000) you can edit the ´ecosystem.config.js´ file and change the port to whatever you want or if you'r not using pm2, you can go to ´bin/www´ and change ´var port = normalizePort(process.env.PORT || '3000');´ and change it there.
-
Edit config/keys to connect to mongo.
-
Start the server
npm run start
or this if you're using pm2
pm2 start
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Francisco Dadone - @FranDadone - dadonefrancisco@hotmail.com.ar
Project Link: https://github.com/FranciscoDadone/FileServer