File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
- # Rails REST API + NextJS Prisma boilerplate 🇻🇳
1
+ # Rails REST API + NextJS boilerplate 🇻🇳
2
2
## Description
3
3
4
- Rails REST API boilerplate for typical project
4
+ Rails REST API boilerplate for typical project can connect and interact with Posgres default by Prisma
5
5
6
6
## Table of Contents
7
7
@@ -72,14 +72,15 @@ cd client &&
72
72
npx prisma generate &&
73
73
npx prisma migrate dev (rails db:migrate)
74
74
rails db:seed (prisma introspect && npx prisma db pull && npx prisma db push)
75
+ cd ..
75
76
rails s -p 3001
76
77
```
77
78
78
79
## Links
79
80
80
- - Routes: http://localhost:3000 /rails/info/routes
81
+ - Routes: http://localhost:3001 /rails/info/routes
81
82
- Adminer (client for DB): http://127.0.0.1/pgadmin4/browser/ (npx prisma studio)
82
- - Maildev: http://localhost:3000 /letter_opener
83
+ - Maildev: http://localhost:3001 /letter_opener
83
84
84
85
## Automatic update of dependencies
85
86
@@ -136,5 +137,5 @@ docker compose -f docker-compose.ci.yaml --env-file env-example -p ci up --build
136
137
## Test benchmarking
137
138
138
139
``` bash
139
- docker run --rm jordi/ab -n 100 -c 100 -T application/json -H " Authorization: Bearer USER_TOKEN" -v 2 http://< server_ip> :3000 /api/v1/users
140
+ docker run --rm jordi/ab -n 100 -c 100 -T application/json -H " Authorization: Bearer USER_TOKEN" -v 2 http://< server_ip> :3001 /api/v1/users
140
141
```
You can’t perform that action at this time.
0 commit comments