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
3. Create a config.env file in your project root containing a DATABASE_URL variable with a postgres:// URL to a local database
15
-
4. Build the database: `$ psql -f "db/db_build.sql" YOUR_DATABASE`
16
-
5. Run that thing:`$ npm start`
17
-
6. 🐶
14
+
3. Create a `config.env` file in your project root containing a DATABASE_URL variable with a postgres:// URL to a local database
15
+
4. You'll also need to set a `JWT_SECRET` environment variable containing a sturdy, robust secret used for hashing the JWT cookies. Use your imagination - it only relates to your particular server :kiss:
16
+
5. Build the database: `$ psql -f "db/db_build.sql" YOUR_DATABASE`
17
+
6. Run that thing:`$ npm start`
18
+
7. 🐶
18
19
19
20
## The brief :eyeglasses:
20
21
@@ -28,7 +29,7 @@ please check it out: http://kamosima.herokuapp.com/
28
29
✅ Mobile-first design :iphone:
29
30
✅ Clear user journey (even if you take one of our suggested ideas, document the user journey in your readme) :runner:
30
31
31
-
## The schema
32
+
## The schema (NOT UPDATED FOR WEEK 2)
32
33
33
34

34
35
@@ -41,6 +42,11 @@ We aptly named our database DOGSPOTTING, and it has three tables:
41
42
****spots :eyes:***
42
43
* A table created by joining dog names and breeds from _**dogs**_ and park names from ***parks***
43
44
45
+
& upon returning to the project to add authentication, we added a **fourth** table (whaaaat):
46
+
47
+
****users :family:***
48
+
* Stores username, is_admin, password and e-mail entries for each user. We also linked this into ***spots*** so we could eventually display which user spotted which dog.
0 commit comments