This is a simple file server implemented in Go that serves files and directories from a specified path. It also includes user authentication using JWT and supports basic user registration and login functionalities.
- Serve files and directories using a web interface.
- User authentication using JWT (JSON Web Tokens).
- Basic user registration and login system.
- Template-based UI using HTML templates.
- Clone the repository:
git clone https://github.com/fenix1851/go-file-server
-
If you want just launch the server, click on the executable file. Otherwise, if you want to build the server yourself, go to the next step.
-
Get the dependencies:
go get
- Build the server:
go build -o go-file-server main.go
- Run the server:
./go-file-server
- Open your browser and go to http://localhost:4001
- Access the file server by navigating to
http://localhost:4001
in your web browser. - Use the login and registration forms to authenticate and register users.
- Upon successful login, you'll be able to access the file server interface and browse files and directories.
Contributions are welcome! If you find any issues or want to add new features, please feel free to submit a pull request.
This project is licensed under the MIT License.