remove flask mentions
This commit is contained in:
41
README.md
41
README.md
@@ -47,7 +47,7 @@ On first run, Gobsidian will create a `settings.ini` file with default configura
|
||||
### Default Configuration
|
||||
|
||||
```ini
|
||||
[FLASK]
|
||||
[SERVER]
|
||||
HOST = 0.0.0.0
|
||||
PORT = 8080
|
||||
SECRET_KEY = change-this-secret-key
|
||||
@@ -125,23 +125,6 @@ To build a standalone binary:
|
||||
go build -o gobsidian cmd/main.go
|
||||
```
|
||||
|
||||
### Docker
|
||||
|
||||
To run with Docker:
|
||||
|
||||
```bash
|
||||
docker build -t gobsidian .
|
||||
docker run -p 8080:8080 -v /path/to/your/notes:/app/notes gobsidian
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
1. Fork the repository
|
||||
2. Create a feature branch
|
||||
3. Make your changes
|
||||
4. Add tests if applicable
|
||||
5. Submit a pull request
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the MIT License - see the LICENSE file for details.
|
||||
@@ -150,24 +133,4 @@ This project is licensed under the MIT License - see the LICENSE file for detail
|
||||
|
||||
- Inspired by Obsidian's excellent note-taking capabilities
|
||||
- Built with Go, Gin, TailwindCSS, and highlight.js
|
||||
- Thanks to the open source community for the excellent libraries used
|
||||
|
||||
## Comparison with Python Flask Version
|
||||
|
||||
This Go implementation provides the same functionality as the original Python Flask version with the following improvements:
|
||||
|
||||
- **Better Performance**: Go's compiled nature and efficient concurrency
|
||||
- **Single Binary**: No need for Python interpreter or virtual environments
|
||||
- **Lower Memory Usage**: More efficient resource utilization
|
||||
- **Modern UI**: Updated with TailwindCSS for better responsiveness
|
||||
- **Enhanced Mobile Support**: Better touch interface and responsive design
|
||||
|
||||
## Future Enhancements
|
||||
|
||||
- [ ] Real-time collaborative editing
|
||||
- [ ] Plugin system for extensions
|
||||
- [ ] Full-text search with indexing
|
||||
- [ ] Note linking and backlinks
|
||||
- [ ] Export functionality (PDF, HTML)
|
||||
- [ ] Themes and customization options
|
||||
- [ ] REST API for external integrations
|
||||
- Thanks to the open source community for the excellent libraries used
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
// Flask equivalent settings
|
||||
// SERVER equivalent settings
|
||||
Host string
|
||||
Port int
|
||||
SecretKey string
|
||||
@@ -32,7 +32,7 @@ type Config struct {
|
||||
}
|
||||
|
||||
var defaultConfig = map[string]map[string]string{
|
||||
"FLASK": {
|
||||
"SERVER": {
|
||||
"HOST": "0.0.0.0",
|
||||
"PORT": "3000",
|
||||
"SECRET_KEY": "change-this-secret-key",
|
||||
@@ -69,13 +69,13 @@ func Load() (*Config, error) {
|
||||
|
||||
config := &Config{}
|
||||
|
||||
// Load FLASK section
|
||||
flaskSection := cfg.Section("FLASK")
|
||||
config.Host = flaskSection.Key("HOST").String()
|
||||
config.Port, _ = flaskSection.Key("PORT").Int()
|
||||
config.SecretKey = flaskSection.Key("SECRET_KEY").String()
|
||||
config.Debug, _ = flaskSection.Key("DEBUG").Bool()
|
||||
maxContentMB, _ := flaskSection.Key("MAX_CONTENT_LENGTH").Int()
|
||||
// Load SERVER section
|
||||
SERVERSection := cfg.Section("SERVER")
|
||||
config.Host = SERVERSection.Key("HOST").String()
|
||||
config.Port, _ = SERVERSection.Key("PORT").Int()
|
||||
config.SecretKey = SERVERSection.Key("SECRET_KEY").String()
|
||||
config.Debug, _ = SERVERSection.Key("DEBUG").Bool()
|
||||
maxContentMB, _ := SERVERSection.Key("MAX_CONTENT_LENGTH").Int()
|
||||
config.MaxContentLength = int64(maxContentMB) * 1024 * 1024 // Convert MB to bytes
|
||||
|
||||
// Load MD_NOTES_APP section
|
||||
@@ -190,7 +190,7 @@ func (c *Config) SaveSetting(section, key, value string) error {
|
||||
|
||||
// Update in-memory config based on section and key
|
||||
switch section {
|
||||
case "FLASK":
|
||||
case "SERVER":
|
||||
switch key {
|
||||
case "HOST":
|
||||
c.Host = value
|
||||
|
||||
Reference in New Issue
Block a user