You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We welcome contributions from the community! If you'd like to contribute to Code Racer, please follow refer to [CONTRIBUTION.md](CONTRIBUTION.md), but we have these base guidelines:
30
22
31
-
```bash
32
-
cd code-racer
33
-
```
23
+
- Fork the repository.
24
+
- Create a new branch for your feature or bug fix.
25
+
- Make your changes and test thoroughly.
26
+
- Commit your changes with clear commit messages.
27
+
- Push your branch to your forked repository.
28
+
Submit a pull request detailing your changes.
34
29
35
-
Install dependencies:
30
+
Please ensure that your code adheres to the project's coding standards and conventions.
36
31
37
-
```bash
38
-
npm install
39
-
```
40
-
Create a .env file inside the project's root directory.
32
+
## Getting Started
41
33
42
-
Copy and paste the content of .env.example into your .env file
34
+
### Prerequisites
43
35
44
-
Update DATABASE_URL inside your .env from "postgresql://USERNAME:PASSWORD@HOST:PORT/NAME?schema=public" to "postgresql://myuser:mypassword@localhost:5432/mydatabase?schema=public" for example or with whichever username, password, host, port, and name you chose.
36
+
You will need to [install docker](https://www.docker.com/get-started/) on your local machine.
45
37
46
38
If you do not have docker, go here to download and install: https://www.docker.com/get-started/
47
39
48
-
If you are getting WSL error when you launch your desktop docker application, go here and follow these steps: https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package.
49
-
50
-
Open Docker Desktop Application and go back to your VSCode terminal and run this command:
51
-
52
-
```bash
53
-
docker compose up -d
54
-
```
55
-
56
-
Generate prisma DB:
57
-
58
-
```bash
59
-
npx prisma generate
60
-
```
61
-
62
-
Updates schema to database
63
-
```bash
64
-
npx prisma db push
65
-
```
66
-
67
-
Start the development server:
68
-
69
-
```bash
70
-
npm run dev
71
-
```
40
+
If you are getting WSL error when you launch your desktop docker application, go here and follow these steps for windows: https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package.
41
+
42
+
### Installation
43
+
44
+
To get started with Code Racer locally, follow these steps
4. Generate a version of Prisma Client that is tailored to the models.
59
+
```js
60
+
npx prisma generate
61
+
```
62
+
5. Create a .env file inside the project's root directory.
63
+
64
+
6. Copy and paste variables from `.env.example` into `.env`
65
+
66
+
7. Open Docker Desktop Application and go back to your VSCode terminal and run this command:
67
+
```sh
68
+
docker compose up -d
69
+
```
70
+
8. Once your database is ready, push your prisma schema to the database.
71
+
```sh
72
+
npx prisma db push
73
+
```
74
+
9. Finally start your dev server.
75
+
```sh
76
+
npm run dev
77
+
```
72
78
73
79
Open your browser and visit http://localhost:3000 to see the application running.
74
80
75
-
## Configuration
81
+
## How to Contribute
76
82
77
-
Code Racer requires some configuration variables to run properly. Create a .env.local file in the root directory of the project and add the following variables:
83
+
### Working on New Features
78
84
79
-
## Contribution
85
+
If you want to work on a new feature, follow these steps.
80
86
81
-
We welcome contributions from the community! If you'd like to contribute to Code Racer, please follow refer to [CONTRIBUTION.md](CONTRIBUTION.md), but we have these base guidelines:
87
+
1. Fork the repo
88
+
2. Clone your fork
89
+
3. Checkout a new branch
90
+
4. Do your work
91
+
5. Commit
92
+
6. Push your branch to your fork
93
+
7. Go into github UI and create a PR from your fork & branch, and merge it into upstream MAIN
82
94
83
-
- Fork the repository.
84
-
- Create a new branch for your feature or bug fix.
85
-
- Make your changes and test thoroughly.
86
-
- Commit your changes with clear commit messages.
87
-
- Push your branch to your forked repository.
88
-
Submit a pull request detailing your changes.
95
+
### Pulling in changes from upstream
89
96
90
-
Please ensure that your code adheres to the project's coding standards and conventions.
97
+
You should pull in the changes that we add in daily, preferably before you checkout a new branch to do new work.
98
+
99
+
1. git checkout main
100
+
2. git pull upstream main
91
101
92
102
## License
93
103
@@ -100,6 +110,6 @@ A big thank you to all the developers who have helped shape Code Racer into what
100
110
101
111
## Contact
102
112
103
-
If you have any questions, suggestions, or feedback regarding Code Racer, please feel free to reach out to us at in the WebDevCody discord server
113
+
If you have any questions, suggestions, or feedback regarding Code Racer, please feel free to reach out to us at in the WebDevCody [discord](https://discord.gg/4kGbBaa) server
0 commit comments