A simple CRUD app using Go; GORM as ORM; JWT authorization
./mynoteapp.exe
- Database setup
- Model migrations
- Handler functions
- The
Usermodel Register()adds new User to the databaseLogin()authenticates User; if successful creates cookies, else throws401.GetAllUsers()fetches all users int the database
- The
Notemodel Authorize()to validate cookies- Controllers:
GetNotes()CreateNote()DeleteNote()UpdateNote()