{"id":23629604,"url":"https://github.com/teomayo/seloadmin","last_synced_at":"2026-04-11T19:03:08.869Z","repository":{"id":269841273,"uuid":"908273969","full_name":"Teomayo/seloadmin","owner":"Teomayo","description":"A dashboard with various widgets which is built with a GO backend and typescript frontend","archived":false,"fork":false,"pushed_at":"2025-03-09T18:09:08.000Z","size":1904,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T06:40:21.807Z","etag":null,"topics":["docker","golang","python","react","typesc"],"latest_commit_sha":null,"homepage":"https://projectselo.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Teomayo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-25T16:42:37.000Z","updated_at":"2025-01-31T01:16:54.000Z","dependencies_parsed_at":"2025-01-24T04:22:06.948Z","dependency_job_id":"01956832-146b-4be5-8da6-0b509c8c6af1","html_url":"https://github.com/Teomayo/seloadmin","commit_stats":null,"previous_names":["teomayo/seloadmin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Teomayo/seloadmin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teomayo%2Fseloadmin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teomayo%2Fseloadmin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teomayo%2Fseloadmin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teomayo%2Fseloadmin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Teomayo","download_url":"https://codeload.github.com/Teomayo/seloadmin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teomayo%2Fseloadmin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281086389,"owners_count":26441419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","golang","python","react","typesc"],"created_at":"2024-12-28T01:16:13.353Z","updated_at":"2025-10-26T10:05:55.565Z","avatar_url":"https://github.com/Teomayo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SELOADMIN\n\nA polling application built with a Go backend (using GORM) and React frontend. The application allows users to create and vote on polls, with authentication and dark/light theme support.\n\n## Project Structure\n\n- `backend/`: Go backend code\n- `frontend/`: React frontend code\n- `db/`: SQLite database\n- `docker-compose.yaml`: Docker compose file for running the application as containers\n \n\n\n## Development Setup\n\n### Prerequisites\n- Go 1.21+\n- Node.js 18+\n- Python 3.x\n- SQLite3\n\n### Initial Setup\n1. Clone the repository\n2. Set up the database and users:\n   ```bash\n   # Copy the users template and edit with your credentials\n   cp backend/scripts/users_template.yaml backend/scripts/users.yaml\n   # Edit users.yaml with your desired user credentials\n   \n   # Run the database setup scripts\n   cd backend/scripts\n   python add_users.py\n   ```\n\n3. Install backend dependencies:\n   ```bash\n   cd backend\n   go mod download\n   ```\n\n4. Install frontend dependencies:\n   ```bash\n   cd frontend\n   npm install\n   ```\n\n### Running in Development Mode\n1. Start the backend server:\n   ```bash\n   cd backend\n   # The backend will use the development database path\n   go run main.go\n   ```\n\n2. Start the frontend development server:\n   ```bash\n   cd frontend\n   npm start\n   ```\n\n\nAlternatively, you can run the application using the `start.sh` script:\n```bash\nsh ./start.sh\n```\n\nThe application will be available at:\n- Frontend: http://localhost:3000\n- Backend API: http://localhost:8080\n\n## Production Deployment\n\n### Using Docker\n1. Configure users:\n   ```bash\n   cp backend/scripts/users_template.yaml backend/scripts/users.yaml\n   # Edit users.yaml with production credentials\n   ```\n\n2. Build and run containers:\n   ```bash\n   docker compose up --build\n   ```\n\nThe application will be available at:\n- Frontend: http://localhost:3000\n- Backend API: http://localhost:8080\n\n### Environment Variables\nCreate a `.env` file in the root directory:\n```\n# Backend settings\nDB_PATH=/app/poll.db\nJWT_SECRET=\nSERVER_PORT=8080\n\n# Frontend settings\nSERVER_HOST=localhost\nFRONTEND_URL=http://localhost:3000\nAPI_URL=http://localhost:8080/api/\nBASE_URL=http://localhost:8080/\nBIBLE_API_KEY=\nENV_MODE=development\n\n```\n\n## Database Management\n- Development database location: `./poll.db`\n- Production database location: `/app/poll.db` (inside container)\n- Database initialization scripts are in `backend/scripts/`\n\n## Authentication\n- Login endpoint: `POST /api-token-auth/`\n- Token-based authentication using JWT\n- User management through `users.yaml` configuration\n\n## Additional Features\n- Dark/Light theme toggle\n- Real-time vote updates\n- User vote tracking\n- Member count display\n\n## Development Notes\n- The backend uses environment mode (`ENV_MODE`) to determine database paths\n- Frontend API URLs are configured through environment variables\n- SQLite database is used for both development and production\n- User data is managed through an untracked YAML file for security\n\n## References\n- [Go Documentation](https://golang.org/doc/)\n- [React Documentation](https://react.dev/)\n- [GORM Documentation](https://gorm.io/)\n- [Docker Documentation](https://docs.docker.com/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteomayo%2Fseloadmin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteomayo%2Fseloadmin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteomayo%2Fseloadmin/lists"}