File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
> Made with [ MUI's] ( https://mui.com/ ) components, [ React] ( https://reactjs.org/ ) and [ create-react-app] ( https://facebook.github.io/create-react-app/ ) .
8
8
9
- ## Local development
9
+ ## How to use
10
+
11
+ - Create a new project from this template
12
+
13
+ ![ ] ( https://i.imgur.com/Hc0JsXs.png )
10
14
11
15
- Copy ` .env.sample ` to ` .env ` and adapt the database URL
12
16
13
17
- Install dependencies: ` npm i ` (This should also setup your database from the ` schema.prisma ` file and the migrations)
14
18
15
19
- Start both the server and the client with ` npm run dev `
16
20
21
+ ### How to sync your database with your new Prisma schema
22
+
23
+ - Run ` npm run db:sync:dev `
24
+
25
+ ### How to seed your database
26
+
27
+ - Run ` npm run db:seed `
28
+
17
29
## Deployment
18
30
31
+ * This project should deploy successfully as-is on Heroku*
32
+
19
33
- Set the DATABASE_URL environment variable
20
34
21
35
- Install dependencies: ` npm ci ` (This should also setup your database from the ` schema.prisma ` file and the migrations)
Original file line number Diff line number Diff line change 1
1
if [ " $NODE_ENV " = " production" ]; then
2
2
npm run db:sync:prod
3
+ npm run db:seed
3
4
npm run build --workspace=client
4
5
else
5
6
npm run db:sync:dev
7
+ npm run db:seed
6
8
fi
You can’t perform that action at this time.
0 commit comments