Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
- Wrote this before 6 but got distracted....commiting now...sorry

Co-authored-by: Danilo <[email protected]>
Co-authored-by: Mohamed <[email protected]>
  • Loading branch information
3 people committed Oct 7, 2021
1 parent 4fccd94 commit c2d7acf
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 14 deletions.
2 changes: 1 addition & 1 deletion NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ All of the things we have learnt, discovered or problems we have solved.

## USEFUL COMMANDS

``restarts`postgres` if encountering error like :
`sudo /etc/init.d/postgresql restart` restarts`postgres` if encountering error like :

```
psql: could not connect to server: No such file or directory
Expand Down
71 changes: 58 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,68 @@

## eBargain

###
### 🧱 Features

- [] As a user, I want to: submit information to your site for anyone to see
- [] As a user, I want to: come back to your site later and see what I posted is still there
- Post products for the world to see and buy
- Uses `three` SQL tables and refrences them when posting a product
- Pre-registered users only
- Different colours for different categorys

### πŸ“ User Stories

#### Core

- [x] As an opinionated person, I want to: post my thoughts so others can read them
- [x] As a bored person, I want to: read what other people have posted

#### Stretch

- [x] As a user, I want to: submit information to your site for anyone to see
- [x] As a user, I want to: come back to your site later and see what I posted is still there

### Acceptance Criteria βœ…

- [] A form for users to submit data
- [] A page showing all the data
- [] Semantic form elements with correctly associated labels
- [] A Postgres database hosted on Heroku
- [] A schema describing your database in your README
- [] Tests for server routes and database access
- [] Not process user input as SQL commands
- [] Hidden environment variables (i.e. not on GitHub)
- [x] A form for users to submit data
- [x] A page showing all the data
- [x] Semantic form elements with correctly associated labels
- [ ] A Postgres database hosted on Heroku
- [x] A schema describing your database in your README
- [x] Tests for server routes and database access
- [x] Not process user input as SQL commands
- [x] Hidden environment variables (i.e. not on GitHub)

### Stretch criteria πŸš‚

- [] A way to view filtered/sorted data, instead of just all of it
- [] GitHub Actions CI setup to run your tests when you push
- [ ] A way to view filtered/sorted data, instead of just all of it
- [ ] GitHub Actions CI setup to run your tests when you push

### Database Schema

### πŸ“š What we learnt

- How to create a database with `PostgreSQL`
- How to automate database creation with `shell` scripts
- How to use `Promise.all()` to collect multiple `promises`
- How to store variables outside of a `SQL` statement
- How to modularise functions for use in other files

### πŸ§ͺ Testing

- [x] `Cypress` test if items appear on page
- [x] `Cypress` test to add new items
- [x] `Cypress` reset state between each test

### ⏳ Future improvements

- [ ] Modularise all code
- [ ] Sign-up and Login
- [ ] Buy button
- [ ] Delete button
- [ ] No time button
- [ ] No user registration
- [ ] CI Testing on GitHub

### πŸ‘€ Screenshots

![Mobile](readme/mobile-fritter1.png)
![Desktop](readme/desktop-fritter.png)

0 comments on commit c2d7acf

Please sign in to comment.