Skip to content

Commit 9027ed3

Browse files
authored
Update README.md
Update for week 2
1 parent 41d1a3f commit 9027ed3

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ please check it out: http://kamosima.herokuapp.com/
1111

1212
1. `$ git clone https://github.com/fac-14/KaMoSiMa.git`
1313
2. `$ npm i`
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. 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. 🐶
1819

1920
## The brief :eyeglasses:
2021

@@ -28,7 +29,7 @@ please check it out: http://kamosima.herokuapp.com/
2829
✅ Mobile-first design :iphone:
2930
✅ Clear user journey (even if you take one of our suggested ideas, document the user journey in your readme) :runner:
3031

31-
## The schema
32+
## The schema (NOT UPDATED FOR WEEK 2)
3233

3334
![](https://image.ibb.co/nLzbY9/Download.jpg)
3435

@@ -41,6 +42,11 @@ We aptly named our database DOGSPOTTING, and it has three tables:
4142
* ***spots :eyes:***
4243
* A table created by joining dog names and breeds from _**dogs**_ and park names from ***parks***
4344

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.
49+
4450
## User stories & stretch goals
4551

4652
### User stories :book:

0 commit comments

Comments
 (0)