Server API v1 #1

Merged
luke merged 30 commits from development into main 2024-05-04 20:22:45 +00:00

30 Commits

Author SHA1 Message Date
96c251c1ca Add new update_task endpoint; Change database_url to &str;
P.S. Worked first time
2024-05-04 15:54:11 -04:00
f2107568f0 Change establish_connection to use &str as opposed to &String 2024-05-04 15:17:42 -04:00
6671f81a9a Fix dsl again 2024-05-03 16:20:48 -04:00
ac99eb4f9d Fix use for dsl 2024-05-03 19:41:03 +00:00
99f4dd4b42 Add delete_task 2024-05-03 15:17:00 -04:00
ff3d302f18 Use UUIDv7 as primary key 2024-05-03 14:39:47 -04:00
c6edcbd009 Setup create_task endpoint 2024-05-03 13:10:48 -04:00
f94e356f8e Add v1 namespace for versioned api 2024-05-03 12:48:12 -04:00
2074d4b476 Add get_task endpoint 2024-05-03 12:24:46 -04:00
9d492f6f91 Add database_url to app state 2024-05-03 12:05:46 -04:00
517794d0db Add get_tasks endpoint 2024-05-03 10:38:54 -04:00
14de8cd479 Move schema back to correct place.
oops
2024-05-03 01:08:32 -04:00
7681079cb1 Relocate model and schema to the db module 2024-05-03 01:04:30 -04:00
d7e5dd7df4 Add empty string checks to PORT and BIND_ADDR env vars 2024-05-03 01:01:06 -04:00
1fb0925528 Add migration check and db connection check to startup 2024-05-02 23:24:14 -04:00
61329db39f Add error println 2024-05-02 23:22:52 -04:00
a9bcfe154a Add due date to migration 2024-05-02 23:22:30 -04:00
9a637b888f Create task table migration 2024-05-02 22:07:30 -04:00
ba1bddc72c Diesel initial setup 2024-05-02 21:10:56 -04:00
2f856a3022 Make util use uniform 2024-05-02 21:10:11 -04:00
0e7f15786d Change .env to include DB_NAME variable and DATABASE_URL 2024-05-02 21:09:35 -04:00
2ca439ac6d Add PORT and BIND_ADDR envs to .env 2024-05-02 20:59:35 -04:00
969791f127 Add postgres container for development 2024-05-02 20:52:48 -04:00
b0cedf2866 Add copyright identifiers 2024-05-02 20:09:52 -04:00
b6dcb1dbf3 Merge branch 'main' into development 2024-05-02 20:08:57 -04:00
2bff93ff43 Allow use of custom port and bind_addr. 2024-05-02 19:49:48 -04:00
73c97a2c5a Add new warn_println() fn 2024-05-02 19:49:26 -04:00
ce121cbf23 Print copyright and server message on startup 2024-05-02 19:33:47 -04:00
95c1cf2930 Implement Basic Web Server 2024-05-02 19:24:52 -04:00
97711358eb Init Cargo 2024-05-02 19:04:52 -04:00