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
Copy file name to clipboardExpand all lines: README.md
+46-34
Original file line number
Diff line number
Diff line change
@@ -16,57 +16,69 @@ Code Racer is a multiplayer coding game where developers can compete against eac
16
16
- Tailwind CSS: A utility-first CSS framework for rapid UI development.
17
17
- TypeScript: A typed superset of JavaScript that provides enhanced tooling and developer productivity.
18
18
19
-
## Getting Started
19
+
## Contribution
20
20
21
-
To get started with Code Racer locally, follow these steps:
21
+
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:
22
22
23
-
Clone the repository:
23
+
- Fork the repository.
24
+
- Create a new branch for your feature or bug fix.
Open your browser and visit http://localhost:3000 to see the application running.
49
+
```sh
50
+
cd code-racer
51
+
```
53
52
54
-
## Configuration
53
+
3. Install NPM packages
54
+
```sh
55
+
npm install
56
+
```
57
+
4. Generate a version of Prisma Client that is tailored to the models.
58
+
```js
59
+
npx prisma generate
60
+
```
61
+
5. Create .env file
55
62
56
-
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:
63
+
6. Copy and paste variables from `.env.example` into `.env`
57
64
58
-
## Contribution
65
+
7. Update each variable in `.env` (optional).
59
66
60
-
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:
67
+
8. Start a docker container for the database.
68
+
```sh
69
+
docker compose up
70
+
```
71
+
9. Once your database is ready, push your prisma schema to the database.
72
+
```sh
73
+
npx prisma db push
74
+
```
75
+
10. Finally start your dev server.
76
+
```sh
77
+
npm run dev
78
+
```
61
79
62
-
- Fork the repository.
63
-
- Create a new branch for your feature or bug fix.
64
-
- Make your changes and test thoroughly.
65
-
- Commit your changes with clear commit messages.
66
-
- Push your branch to your forked repository.
67
-
Submit a pull request detailing your changes.
80
+
Open your browser and visit http://localhost:3000 to see the application running.
68
81
69
-
Please ensure that your code adheres to the project's coding standards and conventions.
0 commit comments