Skip to content

Commit 30db757

Browse files
committed
refactor to use workspaces
1 parent 2e0eb26 commit 30db757

File tree

216 files changed

+12467
-706
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+12467
-706
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitignore

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
41
/node_modules
5-
/.pnp
6-
.pnp.js
7-
8-
# testing
9-
/coverage
10-
11-
# next.js
12-
/.next/
13-
/out/
14-
15-
# production
16-
/build
17-
18-
# misc
19-
.DS_Store
20-
*.pem
21-
22-
# debug
23-
npm-debug.log*
24-
yarn-debug.log*
25-
yarn-error.log*
26-
27-
# local env files
28-
.env*.local
29-
.env
30-
.env.production
31-
32-
# vercel
33-
.vercel
34-
35-
# typescript
36-
*.tsbuildinfo
37-
next-env.d.ts
38-
39-
# SQLite
40-
prisma/dev.db
41-
prisma/dev.db-journal
42-
43-
44-
#local notes & todos - for personal track only
45-
Note.md
46-
47-
# VS Code
48-
.vscode

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npm run lint
4+
npm -w @code-racer/app run lint

CONTRIBUTING.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -48,38 +48,26 @@ To get started with Code Racer locally, follow these steps
4848
cd code-racer
4949
```
5050

51-
4. Create a .env file inside the project's root directory.
51+
4. Create a .env file inside the project's packages/app directory.
5252

53-
5. Copy and paste variables from `.env.example` into `.env`
53+
5. Copy and paste variables from `packages/app/.env.example` into `packages/app/.env`
5454

5555
6. Install NPM packages
5656

5757
```sh
5858
npm i
5959
```
6060

61-
7. Generate a version of Prisma Client that is tailored to the models.
62-
63-
```js
64-
npx prisma generate
65-
```
66-
67-
8. Open Docker Desktop Application and go back to your VSCode terminal and run this command:
61+
7. Open Docker Desktop Application and go back to your VSCode terminal and run this command:
6862

6963
```sh
7064
docker compose up -d
7165
```
7266

73-
9. Once your database is ready, push your prisma schema to the database.
74-
75-
```sh
76-
npx prisma db push
77-
```
78-
79-
10. Finally start your dev server.
67+
8. Finally start your dev server.
8068

8169
```sh
82-
npm run dev
70+
npm -w @code-racer/app run dev
8371
```
8472

8573
Open your browser and visit <http://localhost:3000> to see the application running.

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,6 @@ Happy coding and enjoy the race!
6262
<h2>How To(s) - A newbie section</h2>
6363
</summary>
6464

65-
### Run the applications locally
66-
67-
1. Run our setup script with `npm run setup`. This will install package dependencies and make sure you have the correct version of [docker](https://www.docker.com) and node installed.
68-
a. We recommend using [nvm](https://github.com/nvm-sh/nvm) to manage your node versions.
69-
2. Get the postgres running - `docker compose up -d`
70-
3. Run the dev env - `npm run dev`
71-
72-
Don't forget to turn down the postgres post development - `docker compose down`
73-
7465
### Check the logs of Post
7566

7667
> Run the command - `docker logs --follow code-racer-postgres`

next.config.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)