Commit graph

78 commits

Author SHA1 Message Date
Cipher Vance
7b1df7bce1 feat: more validation on username, email 2025-09-19 11:33:45 -05:00
Cipher Vance
3fec9d794d feat: add cors_origins 2025-09-19 11:33:20 -05:00
Cipher Vance
daa90869cf feat: update email verification 2025-09-18 21:04:16 -05:00
Cipher Vance
afd12684b6 removed testing comment 2025-09-18 21:03:49 -05:00
Cipher Vance
7620a938f5 docs: formatting issues 2025-09-18 21:03:38 -05:00
Cipher Vance
56c8d3a786 feat: make secret key a little more potent 2025-09-18 21:03:28 -05:00
Cipher Vance
a32b2a4210 feat: add some basic folders 2025-09-18 21:03:06 -05:00
Cipher Vance
18b6f74ab5 feat: add database ping 2025-09-18 21:02:57 -05:00
Cipher Vance
db2bedd1d4 feat: remove .env 2025-09-18 20:13:01 -05:00
Cipher Vance
85f8196ef0 cleanup: remove Python Flask application files
- Remove Flask server.py and Python models
- Delete Alembic migrations and configuration
- Remove Python requirements.txt and virtual environment scripts
- Clean up old Python service layer and route blueprints
2025-09-18 20:09:35 -05:00
Cipher Vance
5e0ac13488 docs: update README for Go migration
- Replace Python setup instructions with Go development workflow
- Update environment variable configuration for PostgreSQL
- Change API port from 5000 to 8080
- Add Go-specific build, test, and deployment instructions
- Update project structure documentation
2025-09-18 20:06:37 -05:00
Cipher Vance
485320737b feat: replace Python Dockerfile with Go multi-stage build
- Convert from Python 3.10 Flask app to Go 1.21 Alpine build
- Add multi-stage Docker build for optimized production image
- Create non-root user for security
- Update health check for new port 8080
- Add comprehensive .dockerignore for Go project
2025-09-18 20:06:37 -05:00
Cipher Vance
bb91aff5fd feat: add authentication routes with Gin handlers
- Create routes/auth.go with signup, login, and logout endpoints
- Add JSON request binding and validation
- Implement session management for user authentication
- Add proper HTTP status codes and error responses
2025-09-18 20:06:37 -05:00
Cipher Vance
3d9de8ba11 feat: add user service layer with business logic
- Create services/user_service.go with user creation and verification
- Add input validation for username, email, and password
- Implement duplicate user checking and password hashing
- Add comprehensive error handling and logging
2025-09-18 20:06:36 -05:00
Cipher Vance
3ed698918b feat: add Go models for User and UserProfile
- Create models/user.go with bcrypt password hashing
- Create models/user_profile.go with foreign key relationship
- Add GORM hooks for automatic profile creation
- Include proper JSON tags and database constraints
2025-09-18 20:06:36 -05:00
Cipher Vance
e40a119bdc feat: add database configuration for PostgreSQL
- Create config/database.go with GORM PostgreSQL connection
- Support environment-based database configuration
- Add connection logging and error handling
2025-09-18 20:06:36 -05:00
Cipher Vance
ee836fa4c8 feat: initialize Go module and add main application entry point
- Add go.mod with required dependencies (Gin, GORM, PostgreSQL driver)
- Create main.go with Gin router, CORS, sessions, and database initialization
- Configure health check endpoint and auth route registration
2025-09-18 20:06:36 -05:00
Cipher Vance
ac0b09ad0e feat(db): added migration 2025-09-09 08:33:04 -05:00
Cipher Vance
0698ba5c1f refactor(service): enrich UserService.create_user 2025-09-09 08:32:49 -05:00
Cipher Vance
f5f86a2bc7 refactor(api): unify auth endpoints under /api, enhance signup 2025-09-09 08:32:15 -05:00
Cipher Vance
52bb003980 feat(models): add email to User and normalize UserProfile 2025-09-09 08:31:55 -05:00
Cipher Vance
f396c98cbe chore(docker): include .env, fix port, install dotenv 2025-09-09 08:31:16 -05:00
Cipher Vance
6c994db855 refactor: change from 3 chars in username to 5 2025-09-08 21:08:40 -05:00
Cipher Vance
a8bcd5e249 removed the HEAD changes 2025-08-28 20:32:26 -05:00
Cipher Vance
ad1ec15523 fixed some db connections and added some dev stuff 2025-08-28 20:32:17 -05:00
Cipher Vance
8698a0f875 init: first migrations 2025-08-28 20:31:48 -05:00
Cipher Vance
cb664a284c add flask migrate and flask.cli as well as got rid of db create all 2025-08-28 20:31:33 -05:00
Cipher Vance
0ac0e03e7a added flask-migrate 2025-08-28 20:31:08 -05:00
Cipher Vance
b7a2f2ed4f feat: updated gitignore for migrations 2025-08-28 20:30:58 -05:00
Cipher Vance
7cd0cb2377 fix(dockerfile): correct env vars, install gunicorn in builder, and improve runtime setup 2025-08-28 20:16:02 -05:00
Cipher
572a0fe686 ci: add docker ignore 2025-08-26 10:39:00 -05:00
Cipher
4e5531be7c refactor: build out dockerfile for production use 2025-08-26 10:22:21 -05:00
Cipher
ab7bdeb7ee docs(todo): merge RideAware feature blurbs into TODO and fill gaps 2025-08-26 10:07:58 -05:00
Blake Ridgway
ff67ec4cdc fix merge) 2025-04-03 14:52:34 -05:00
Blake Ridgway
81d7a80758 Merge branch 'v0.1.0-user-login' 2025-04-03 14:49:24 -05:00
Blake Ridgway
dc36b21dcc (refactor): Implement robust logging and database error handling
Introduced logging for user operations
Added database rollback on user creation failure
Enhanced exception handling and error reporting
2025-04-03 10:42:01 -05:00
Blake Ridgway
de5bff5935 (refactor): Enhance error handling and route structure
Added url_prefix to auth blueprint
Implemented comprehensive exception handling with 500 errors
Improved code clarity and structure
2025-04-03 10:39:56 -05:00
Blake Ridgway
afac3b6281 refactor: Improve server setup and add health check
Added /health endpoint for monitoring
Improved readability and config setup
Imported auth_bp directly
2025-04-03 10:38:51 -05:00
Blake Ridgway
545b31a15f feat: Added user profile and creation of profile 2025-02-17 19:46:36 -06:00
blake
3ab162d8b8 fix: removed print line with user/pass that was used in debugging. 2025-02-16 16:26:23 +01:00
blake
de9438b2a0 Merge pull request 'fix: resolve AttributeError in User model and ensure consistent password handling' (#17) from v0.1.0-user-login into main
Reviewed-on: https://brew.bsd.cafe/RideAware/rideaware-api/pulls/17
2025-02-16 05:44:19 +01:00
Blake Ridgway
4a4d693d72 fix: resolve AttributeError in User model and ensure consistent password handling
- Fixed the `AttributeError: 'User' object has no attribute '_password'` by properly mapping the `_password` attribute to the `password` column in the database.
- Updated the `User` model to ensure passwords are only hashed once during creation and not re-hashed when retrieved or updated.
- Improved the `check_password` method to correctly compare hashed passwords.
- Verified the signup and login flow to ensure consistent behavior
2025-02-15 22:42:50 -06:00
blake
49684e163d Merge pull request '(refactor) boilerplate .gitignore, cleaned up folders' (#16) from v0.1.0-user-login into main
Reviewed-on: https://brew.bsd.cafe/RideAware/rideaware-api/pulls/16
2025-02-16 04:55:29 +01:00
Blake Ridgway
d13c5885d8 (refactor) boilerplate .gitignore, cleaned up folders 2025-02-15 21:54:25 -06:00
blake
3af3b548ca Merge pull request 'v0.1.0-user-login: Refactor auth routes to use UserService for user creation and verification' (#15) from v0.1.0-user-login into main
Reviewed-on: https://brew.bsd.cafe/RideAware/rideaware-api/pulls/15
2025-02-16 04:40:56 +01:00
Blake Ridgway
356058e1f9 (feaet): Refactor auth routes to use UserService 2025-02-15 21:30:23 -06:00
Blake Ridgway
f624792a2f (feat): input validation, improved error handling, and additional security measures. 2025-02-15 21:15:58 -06:00
blake
d12f933534 Merge pull request 'v0.1.0-database: Improve Scalability - Migrate to PostgreSQL' (#14) from v0.1.0-database into main
Reviewed-on: https://brew.bsd.cafe/RideAware/rideaware-api/pulls/14
2025-02-16 02:05:02 +01:00
Blake Ridgway
1652079874 (remove): Removed temp comments 2025-02-15 19:00:00 -06:00
Blake Ridgway
51f154ab73 (feat): Added PostgreSQL connection string encoding. 2025-02-15 18:58:48 -06:00