remove flask mentions

This commit is contained in:
nahakubuilde
2025-08-25 08:55:21 +01:00
parent bfa0eaf68a
commit 17d8e8144b
2 changed files with 12 additions and 49 deletions

View File

@@ -47,7 +47,7 @@ On first run, Gobsidian will create a `settings.ini` file with default configura
### Default Configuration ### Default Configuration
```ini ```ini
[FLASK] [SERVER]
HOST = 0.0.0.0 HOST = 0.0.0.0
PORT = 8080 PORT = 8080
SECRET_KEY = change-this-secret-key SECRET_KEY = change-this-secret-key
@@ -125,23 +125,6 @@ To build a standalone binary:
go build -o gobsidian cmd/main.go 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 ## License
This project is licensed under the MIT License - see the LICENSE file for details. 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 - Inspired by Obsidian's excellent note-taking capabilities
- Built with Go, Gin, TailwindCSS, and highlight.js - Built with Go, Gin, TailwindCSS, and highlight.js
- Thanks to the open source community for the excellent libraries used - 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

View File

@@ -11,7 +11,7 @@ import (
) )
type Config struct { type Config struct {
// Flask equivalent settings // SERVER equivalent settings
Host string Host string
Port int Port int
SecretKey string SecretKey string
@@ -32,7 +32,7 @@ type Config struct {
} }
var defaultConfig = map[string]map[string]string{ var defaultConfig = map[string]map[string]string{
"FLASK": { "SERVER": {
"HOST": "0.0.0.0", "HOST": "0.0.0.0",
"PORT": "3000", "PORT": "3000",
"SECRET_KEY": "change-this-secret-key", "SECRET_KEY": "change-this-secret-key",
@@ -69,13 +69,13 @@ func Load() (*Config, error) {
config := &Config{} config := &Config{}
// Load FLASK section // Load SERVER section
flaskSection := cfg.Section("FLASK") SERVERSection := cfg.Section("SERVER")
config.Host = flaskSection.Key("HOST").String() config.Host = SERVERSection.Key("HOST").String()
config.Port, _ = flaskSection.Key("PORT").Int() config.Port, _ = SERVERSection.Key("PORT").Int()
config.SecretKey = flaskSection.Key("SECRET_KEY").String() config.SecretKey = SERVERSection.Key("SECRET_KEY").String()
config.Debug, _ = flaskSection.Key("DEBUG").Bool() config.Debug, _ = SERVERSection.Key("DEBUG").Bool()
maxContentMB, _ := flaskSection.Key("MAX_CONTENT_LENGTH").Int() maxContentMB, _ := SERVERSection.Key("MAX_CONTENT_LENGTH").Int()
config.MaxContentLength = int64(maxContentMB) * 1024 * 1024 // Convert MB to bytes config.MaxContentLength = int64(maxContentMB) * 1024 * 1024 // Convert MB to bytes
// Load MD_NOTES_APP section // 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 // Update in-memory config based on section and key
switch section { switch section {
case "FLASK": case "SERVER":
switch key { switch key {
case "HOST": case "HOST":
c.Host = value c.Host = value