Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reverts the use of Pretty for actual API useHEADmaster | Matthew Lemon | 2024-06-07 | 1 | -4/+4 |
| | |||||
* | Couple of minor fixes | Matthew Lemon | 2024-06-03 | 1 | -3/+2 |
| | |||||
* | Adds makefile run to run test without docker | Matthew Lemon | 2024-06-03 | 1 | -0/+2 |
| | |||||
* | Formatting only | Matthew Lemon | 2024-06-03 | 1 | -1/+2 |
| | |||||
* | Rips out Postgres - but leaves migration files for now | Matthew Lemon | 2024-06-03 | 4 | -26/+8 |
| | | | | | | | | | | | | | | | - this does not yet remove the models - uses sqlite3 driver - changes the config based on sqlite3 - tests pass but no depth in investigating the models The sqlite3 database is going to be used for storing user data and tokens only - we are not going to store the models in a database at this point. If we want to start saving datamaps, datamaplines, returns and returnlines, etc, we will need the models but as of this commit the models are still in the code. | ||||
* | Spelling fixes and adds a newline | Matthew Lemon | 2024-06-01 | 2 | -7/+7 |
| | | | | | | Adds a mere newline... Fixes spelling mistakes | ||||
* | Can now parse a return XLSX file | Matthew Lemon | 2024-05-31 | 4 | -24/+24 |
| | | | | | | | | | | | | | | | | We can now submit a datamap.csv and a single return xlsx file using the following command, and get a Return JSON string back with the parsed date: `curl -X POST -F "file=@./datamap.csv" -F "returnfile=@./resources/test_two_sheets.xlsm" \ -F "name=bobbins" -F "description=This is a long description of the datamap." \ http://localhost:5000/v1/return` I have renamed the old test.xlsm file here to test_two_sheets.xlsm - having remove a sheet from the test.xlsm. I did this to ensure that the parsing handles multiple sheets which it does. Still a fair amount of clearning up here but if you run the server and send in this request, it works. | ||||
* | Some tidying | Matthew Lemon | 2024-05-30 | 6 | -11/+58 |
| | | | | | | | | | | | | | Configured to run dlv in the container See https://golangforall.com/en/post/go-docker-delve-remote-debug.html Haven't actually go the interactive dlv working - need to explore docker attach to do that, maybe. Slimmed down image in play - Also adds a new make rule to run debug container | ||||
* | Some tidying | Matthew Lemon | 2024-05-29 | 1 | -17/+16 |
| | |||||
* | Nice refactoring | Matthew Lemon | 2024-04-20 | 2 | -13/+36 |
| | | | | The FilePreparer interface is now nicer. | ||||
* | wip: bad implementation of unzip | Matthew Lemon | 2024-04-20 | 3 | -0/+36 |
| | |||||
* | wip: testing the file package interface | Matthew Lemon | 2024-04-20 | 2 | -14/+35 |
| | |||||
* | First parse of an Excel file | Matthew Lemon | 2024-04-19 | 8 | -69/+387 |
| | |||||
* | First test and first appearance of returns code | Matthew Lemon | 2024-04-12 | 8 | -157/+371 |
| | | | | | | | Test a function that gets all sheets from a datamap struct. A new function to handle a datamap and a return together in one POST request. | ||||
* | Completion of stateless API for datamap create | Matthew Lemon | 2024-04-12 | 1 | -0/+1 |
| | |||||
* | Adds back old JSON-based handler | Matthew Lemon | 2024-04-12 | 1 | -0/+58 |
| | |||||
* | Adds example Docker bash deployment script | Matthew Lemon | 2024-04-10 | 1 | -0/+92 |
| | |||||
* | Adds ability to save a single datamap to the database | Matthew Lemon | 2024-04-10 | 5 | -9/+102 |
| | |||||
* | First introduction of migrations using golang-migrate | Matthew Lemon | 2024-04-10 | 8 | -7/+43 |
| | |||||
* | Adds docker compose run command to Makefile | Matthew Lemon | 2024-04-10 | 1 | -1/+4 |
| | |||||
* | Adds some database pool configuration and flags | Matthew Lemon | 2024-04-10 | 1 | -1/+19 |
| | |||||
* | Adds .env file with database dsn in it | Matthew Lemon | 2024-04-10 | 4 | -2/+15 |
| | |||||
* | Postgres implementation now set up and in containers - no tables yet | Matthew Lemon | 2024-04-10 | 5 | -1/+49 |
| | |||||
* | Adds docker compose config file and changes application port | Matthew Lemon | 2024-04-10 | 3 | -2/+26 |
| | |||||
* | Reorganises cmd/ structure for publication on pkg.go.dev | Matthew Lemon | 2024-04-06 | 9 | -1/+7 |
| | | | | Adds key commands to Makefile | ||||
* | Adds the GPL clauses to main source code files | Matthew Lemon | 2024-04-06 | 6 | -0/+102 |
| | |||||
* | Appends some advice for Github.... | Matthew Lemon | 2024-04-06 | 1 | -0/+5 |
| | |||||
* | Adds the GPL | Matthew Lemon | 2024-04-06 | 1 | -0/+674 |
| | |||||
* | Created a Docker file for the project | Matthew Lemon | 2024-04-05 | 3 | -0/+1970 |
| | |||||
* | Changes the version | Matthew Lemon | 2024-03-13 | 1 | -1/+1 |
| | |||||
* | Create go.yml | Yulqen | 2024-03-13 | 1 | -0/+27 |
| | |||||
* | Adds a readme | Matthew Lemon | 2024-03-13 | 1 | -0/+3 |
| | |||||
* | Handler for creating a datamapLine object | Matthew Lemon | 2024-03-13 | 2 | -7/+21 |
| | |||||
* | Implements our own errors | Matthew Lemon | 2024-03-13 | 3 | -12/+46 |
| | |||||
* | Adds errors file and dbasik.sql | Matthew Lemon | 2024-03-13 | 2 | -0/+39 |
| | |||||
* | Wraps the JSON response for healthcheck in an envelope | Matthew Lemon | 2024-03-12 | 1 | -5/+7 |
| | |||||
* | Wraps the JSON response in an envelope | Matthew Lemon | 2024-03-12 | 2 | -2/+5 |
| | |||||
* | wip: Indent the JSON | Matthew Lemon | 2024-03-12 | 2 | -3/+43 |
| | |||||
* | wip: full datamap struct is now converted to json | Matthew Lemon | 2024-03-12 | 1 | -6/+16 |
| | |||||
* | wip: returns the parsed csv as json | Matthew Lemon | 2024-03-12 | 1 | -28/+34 |
| | |||||
* | wip: writes contents of uploaded csv file to http.ResponseWriter | Matthew Lemon | 2024-03-12 | 1 | -12/+28 |
| | |||||
* | First implementation of csv upload | Matthew Lemon | 2024-03-12 | 1 | -1/+33 |
| | |||||
* | Implements the new writeJSON method | Matthew Lemon | 2024-03-11 | 1 | -5/+1 |
| | |||||
* | Adds a writeJSON helper | Matthew Lemon | 2024-03-11 | 3 | -4/+50 |
| | |||||
* | Adds first bit of JSON | Matthew Lemon | 2024-03-11 | 1 | -3/+4 |
| | |||||
* | Handles negative id | Matthew Lemon | 2024-03-11 | 1 | -2/+1 |
| | |||||
* | Initial commit | Matthew Lemon | 2024-03-11 | 6 | -0/+114 |