https://github.com/beastop/sat-form
https://github.com/beastop/sat-form
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/beastop/sat-form
- Owner: beastOP
- Created: 2024-09-17T14:10:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-17T23:36:16.000Z (almost 2 years ago)
- Last Synced: 2025-02-25T09:29:26.605Z (over 1 year ago)
- Language: Go
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project SAT FORM
## Description
This project is a simple web application in golang that allows users to do the following:
- Submit SAT Results and assign a rank to the record based on the SAT score
- View them all in a table
- Get a rank based on the name provided
- Update the SAT score of a record
- Delete a record
- A view all data button to view all data in the database in JSON format
## Database Design
### SAT Score Table
- id (unique)
- name (unique)
- address
- city
- country
- pincode
- sat_score
- passed (boolean, true if sat_score is greater than 30% else false)
- created_at
- updated_at
- rank
## Technologies
- Backend: Golang
- Database: SQLite
- Frontend: Templ, TailwindCSS, HTMX
## Plan
- [x] Setup http server to handle requests, and define the necessary handlers
- [x] Setup the database and create the necessary tables
- [x] Setup the empty frontend
- [ ] Implement that handlers one by one
- [x] Submit SAT Score
- [x] Delete SAT Score
- [x] View all data in JSON format
- [x] Full text search for a SAT Score by name
- [x] Update SAT Score
- [X] Get rank by nam
- [ ] Add tailwind
## Installation
Clone the repository and run the following command to install the dependencies:
```bash
go mod tidy
```
## Running the project
Run the following command to start the server:
```bash
make run
```