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
+24-3Lines changed: 24 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,28 @@ A project designed to create a new pairwise judging system using modern technolo
4
4
5
5
# Deployment
6
6
7
+
## Setup
8
+
9
+
Copy `.env.template` into `.env` and fill in the environmental variables
10
+
11
+
Environmental Variables:
12
+
13
+
```
14
+
JURY_NAME="Name of the jury app [Displays on the app!]"
15
+
JURY_ADMIN_PASSWORD="Password used to log into the admin dashboard"
16
+
17
+
MONGODB_URI="MongoDB connection URI string [ONLY for MongoDB Atlas]"
18
+
MONGODB_USER="Username for local mongo container [ONLY use if running local mongo instance]"
19
+
MONGODB_PASS="Password for local mongo container [ONLY use if running local mongo instance]"
20
+
```
21
+
22
+
I suggest you run the app with MongoDB Atlas! Create a free account and database [here](https://www.mongodb.com/atlas/database). It should provide you a URI string to fill into the `.env` file.
23
+
24
+
If you would rather use a local instance deployed with docker-compose, you can simply fill in the username and password you want to use with that database.
25
+
7
26
## With Docker
8
27
9
-
Run `docker compose up`
28
+
Run `docker compose up` after configuring the `.env` file. If you want to run mongo locally, run `docker compose -f docker-compose-mongo.yml`.
10
29
11
30
# Developing
12
31
@@ -16,9 +35,11 @@ Requirements:
16
35
17
36
*[Docker](https://www.docker.com/)
18
37
19
-
Copy `.env.template` into `.env` and fill in the environmental variables
38
+
Copy `.env.template` into `.env` and fill in the environmental variables (see above).
39
+
40
+
Simply run `docker compose -f docker-compose.dev.yml up` and open the page at `localhost:3000`.
20
41
21
-
Simply run `docker compose -f docker-compose.dev.yml up` and open the page at `localhost:3000`
42
+
If you want to run mongo locally, run `docker compose -f docker-compose-mongo.dev.yml`.
0 commit comments