Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 #39

Merged
merged 95 commits into from
Apr 25, 2023
Merged

V2 #39

Changes from 1 commit
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
a65cffb
rename original db
raulfdm Apr 16, 2023
e033a91
add prisma
raulfdm Apr 22, 2023
ac7f030
move all code to "old"
raulfdm Apr 22, 2023
610a195
start project with pnpm
raulfdm Apr 22, 2023
ef94300
add prisma dependencies
raulfdm Apr 22, 2023
67f0562
initialize typescript
raulfdm Apr 22, 2023
c67aa7a
add prisma extension as recommendation
raulfdm Apr 22, 2023
d016a66
initialize prisma
raulfdm Apr 22, 2023
2d984b2
move README to old
raulfdm Apr 22, 2023
956d427
add docker compose
raulfdm Apr 22, 2023
aadc0e7
update .env.sample
raulfdm Apr 22, 2023
f4221f1
replace ts-node with tsx and add prisma client
raulfdm Apr 22, 2023
969fcb5
update tsconfig to work properly
raulfdm Apr 22, 2023
5349f26
create first model
raulfdm Apr 22, 2023
b3c770e
add few scripts
raulfdm Apr 22, 2023
ee05bdc
make category name unique
raulfdm Apr 22, 2023
6ac0c2f
resolve json
raulfdm Apr 22, 2023
24f767b
add a seed script
raulfdm Apr 22, 2023
ecdd824
add readme
raulfdm Apr 22, 2023
b869b60
remove old files in favor of a new approach
raulfdm Apr 23, 2023
27144e5
fix phase 5
raulfdm Apr 23, 2023
fb99e5f
add csv files
raulfdm Apr 23, 2023
d317cd5
rename csvs
raulfdm Apr 23, 2023
9d03561
add more info on references readme
raulfdm Apr 23, 2023
ef221fd
add zod and cvtojson
raulfdm Apr 23, 2023
74347ae
fix create-categories script
raulfdm Apr 23, 2023
9d0ea5a
add new create-foods script
raulfdm Apr 23, 2023
a346fb3
more-migrations
raulfdm Apr 23, 2023
b3a50fb
rename food description to name
raulfdm Apr 23, 2023
302abdb
change schema
raulfdm Apr 23, 2023
986ee9f
add amino acids table
raulfdm Apr 23, 2023
97c9a91
rename csvs
raulfdm Apr 23, 2023
5de7e6f
update DP
raulfdm Apr 23, 2023
c4f5866
add reset command
raulfdm Apr 23, 2023
0a44b6e
add more scripts
raulfdm Apr 23, 2023
6b6a52e
fix broken value
raulfdm Apr 23, 2023
078c247
add nutrients to seed
raulfdm Apr 23, 2023
7cb29bb
finish seed script
raulfdm Apr 24, 2023
e8969c5
add units
raulfdm Apr 24, 2023
927ce18
fix seed npm script
raulfdm Apr 24, 2023
8f6d33b
add units
raulfdm Apr 24, 2023
786e73e
enhance units
raulfdm Apr 24, 2023
f61bfb2
rename table fields
raulfdm Apr 24, 2023
2af5ed2
add a few dependencies
raulfdm Apr 24, 2023
5d80ddd
start coding the graphql api
raulfdm Apr 24, 2023
e2e50ef
move seed under src
raulfdm Apr 24, 2023
87e826e
add seed command to prisma
raulfdm Apr 24, 2023
78cc0f4
add ts alias
raulfdm Apr 24, 2023
0c60fa2
rename npm scripts
raulfdm Apr 24, 2023
6ce9fc2
move prisma under src
raulfdm Apr 24, 2023
5a0d219
correct dotenv import
raulfdm Apr 24, 2023
b60696a
add food module
raulfdm Apr 24, 2023
a867948
rename field
raulfdm Apr 24, 2023
3ab6ea0
rollback all previous migrations
raulfdm Apr 24, 2023
6d848b3
add barrels
raulfdm Apr 24, 2023
bab43a5
add category module
raulfdm Apr 24, 2023
d8e03ad
add barrel to food and change type def
raulfdm Apr 24, 2023
6b73741
add aminoAcid module
raulfdm Apr 24, 2023
702b945
create fatty acid module
raulfdm Apr 24, 2023
04ea38b
add nutrient module
raulfdm Apr 24, 2023
9d4553e
rename module
raulfdm Apr 24, 2023
298a53e
fix category resolves
raulfdm Apr 24, 2023
76f87f0
finish last setup
raulfdm Apr 24, 2023
3a263f4
add back the Vuepress docs
raulfdm Apr 24, 2023
bdd7dfc
add eslint
raulfdm Apr 24, 2023
421bb21
fix import sort
raulfdm Apr 24, 2023
4079582
add eslint rule to better handle types
raulfdm Apr 24, 2023
06b08eb
bring license
raulfdm Apr 24, 2023
12e7c28
add cors
raulfdm Apr 24, 2023
10c1ea9
change version
raulfdm Apr 24, 2023
2cce869
migrate README
raulfdm Apr 24, 2023
cd6370f
remove package lock
raulfdm Apr 24, 2023
a4e2510
remove procfile
raulfdm Apr 24, 2023
e23de27
bring changelog
raulfdm Apr 24, 2023
0ca9235
add image scripts
raulfdm Apr 24, 2023
461dd43
enhance seed script
raulfdm Apr 25, 2023
33aaa50
enhance getPrismaClient
raulfdm Apr 25, 2023
fd1b9c5
bring docker files
raulfdm Apr 25, 2023
06a241e
remove .env
raulfdm Apr 25, 2023
6fb8547
enhance npm scripts
raulfdm Apr 25, 2023
0e014cc
migrate db to sqlite
raulfdm Apr 25, 2023
2655348
add missing environment variable
raulfdm Apr 25, 2023
f8417b8
add env from zod
raulfdm Apr 25, 2023
0d23532
enhance disable logs
raulfdm Apr 25, 2023
5f8a9b8
add prettier
raulfdm Apr 25, 2023
772d02c
run prettier format
raulfdm Apr 25, 2023
05ae048
replace express-graphql with graphql-http
raulfdm Apr 25, 2023
5e6851e
test
raulfdm Apr 25, 2023
d3e7a41
add md files to lint stage
raulfdm Apr 25, 2023
69d889c
remove old code
raulfdm Apr 25, 2023
e3ec7a2
fix workflow
raulfdm Apr 25, 2023
4b2de11
add query operation
raulfdm Apr 25, 2023
c65de50
change docs
raulfdm Apr 25, 2023
de2eac8
enhance scripts and docker image
raulfdm Apr 25, 2023
fb2546f
add tags to docker image
raulfdm Apr 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add docker compose
  • Loading branch information
raulfdm committed Apr 25, 2023
commit 956d42733515a53890d06cf4d96f381a211dffc2
17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '3.9'

services:
db:
image: postgres
restart: unless-stopped
environment:
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: postgres
POSTGRES_DB: taco-api
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data

volumes:
postgres-data: