Skip to content

Commit 5224af2

Browse files
committed
Upgraded the coding exercise to Next 14
1 parent 3adbbc5 commit 5224af2

5 files changed

Lines changed: 15238 additions & 9370 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
dist
55
tmp
66
/out-tsc
7+
.nx
78

89
# dependencies
910
node_modules

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,24 @@ It's likely we won't complete every requirement, but let's get as far as we can
5353
- Nest comes with [generators](https://docs.nestjs.com/recipes/crud-generator) to help you scaffold out your application. You can run `nx g @nx/nest:resource <name>` to generate a resource much of the boilerplate you need for purchase orders.
5454

5555
### To Start Exercise
56-
- Run `npm install --global nx@latest`
57-
- Run `npm install`
58-
- Run `npx prisma generate --schema apps/api/prisma/schema.prisma`
59-
- Run `nx run api:serve:development`
60-
- Run `nx run client:serve:development`
56+
Run the following commands to get the project going. `install:nx` is a one-time command that is only needed if you don't have NX installed yet.
57+
```
58+
npm run install:nx
59+
npm run setup
60+
npm run start
61+
```
62+
The application will be running at http://localhost:4200
63+
64+
#### Additional details
65+
When coding it may be easier to run the API and client separately. You can start them independently with the following commands:
66+
```
67+
npm run start:api
68+
npm run start:client
69+
```
70+
71+
Once both servers are running, you can access:
72+
- The API at: http://localhost:3100
73+
- The client application at: http://localhost:4200
6174

6275
### Schema
6376
Here is the schema we will use for this exercise.

apps/client/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"**/*.jsx",
2626
"../../apps/client/.next/types/**/*.ts",
2727
"../../dist/apps/client/.next/types/**/*.ts",
28-
"next-env.d.ts"
28+
"next-env.d.ts",
29+
".next/types/**/*.ts"
2930
],
3031
"exclude": [
3132
"node_modules",

0 commit comments

Comments
 (0)