https://github.com/sunho/mouse-hosting
hosting site with human readable registration key
https://github.com/sunho/mouse-hosting
education ftp hosting paas react rest-api
Last synced: about 2 months ago
JSON representation
hosting site with human readable registration key
- Host: GitHub
- URL: https://github.com/sunho/mouse-hosting
- Owner: sunho
- License: mit
- Created: 2018-02-08T10:36:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-12T12:53:25.000Z (almost 8 years ago)
- Last Synced: 2025-09-07T01:06:31.818Z (10 months ago)
- Topics: education, ftp, hosting, paas, react, rest-api
- Language: Go
- Homepage:
- Size: 10.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
🐁 hosting site that is used in HTML class
## Features
- Account registration using authorization keys
- Human-readable + memorable keys
- The administration page
- Basic web app(html, js, css)
- Virtual FTP account
## Installation
## initial
```
go get github.com/sunho/mouse-ftp/server
```
## mouseftp
Go to mouse-ftp and follow the guide to install it.
## api server
Go to [GOPATH](https://github.com/golang/go/wiki/GOPATH)/github.com/sunho/shower-server/server and execute the following command.
```
go build
```
Then you should see "server" binary file. You can configure the server by tweaking "config.yaml" The meanings of entries are explained in the table below.
| field | description | type |
| --- | --- | --- |
| userfile | the path of a file in which the users' data are stored. | path |
| keyfile | the path of a file in which the keys' data are stored | path |
| username | admin username | string |
| password | admin password | string |
| address | address for mousehosting api server | ip / port |
| ftp address | | |
| api | address for mouseftp api server this should not be exposed to the public | ip / port |
| ftp | address for mouseftp ftp server | ip / port |
If you omit the ip, it will bind for every ip available.
After you finished the configuration, you can open the api server via.
```
./server
```
### client
Go to [GOPATH](https://github.com/golang/go/wiki/GOPATH)/github.com/sunho/shower-server. And execute these commands.
```
npm install
npx webpack
```
After the process, you should see "dist" folder. You can provide the whole directory through web server such as apache or nginx. Or you can just execute "dist/index.html"