Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
3e64e4a
Merge pull request #71 from ipaullly/ch-test-user-interactions-163458249
ipaullly Jan 25, 2019
27998c3
remove typo in landing page text
ipaullly Jan 25, 2019
9762c84
make the README.md more descriptive
ipaullly Jan 25, 2019
ff3363b
remove redundant files from project folder
ipaullly Jan 25, 2019
368edc1
remove redundant build folder
ipaullly Jan 25, 2019
93e1b9e
integrate codacy to repo
ipaullly Jan 31, 2019
a105077
edit codacy badge
ipaullly Jan 31, 2019
8edf227
debug travis.yml
ipaullly Jan 31, 2019
7ac9589
[starts #164121365] improve javascript in tandem with issues raised b…
ipaullly Feb 20, 2019
cda063c
add commands for coverage to package.json and travis.yml
ipaullly Feb 20, 2019
09fd031
add --config flag to test script
ipaullly Feb 20, 2019
e574fd1
add coveralls script to package.json
ipaullly Feb 20, 2019
849fdb7
add coveralls to after_success
ipaullly Feb 20, 2019
0e7dada
add before_script section in the travis.yml
ipaullly Feb 20, 2019
6261c10
remove before_script section in the travis.yml
ipaullly Feb 20, 2019
304913d
remove coveralls command
ipaullly Feb 20, 2019
bb3676f
add codacy coverage command
ipaullly Feb 20, 2019
af62d0a
Merge pull request #75 from ipaullly/ch-test-coverage-164121365
ipaullly Feb 20, 2019
dcf4d6f
update package.json
ipaullly Feb 23, 2019
5f48f57
[#164191738] add test for user cancel order
ipaullly Feb 24, 2019
6e3d0dc
[finishes #164191738] add tests for admin interactions
ipaullly Feb 24, 2019
dcb97ef
update README.md headings
ipaullly Feb 24, 2019
761ed62
Merge pull request #76 from ipaullly/ch-admin-tests-164191738
ipaullly Feb 24, 2019
b0c33d6
Update style.css
ipaullly Oct 11, 2019
e880223
Update index.html
ipaullly Jan 6, 2020
362c3f7
Update about.html
ipaullly Jan 6, 2020
b2d22c2
Update login.html
ipaullly Jan 6, 2020
93e8d96
Update register_page.html
ipaullly Jan 6, 2020
d465efd
Update order_display_page.html
ipaullly Jan 17, 2020
38dc92c
Update orders_display_admin.html
ipaullly Jan 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ app/
.env
node_modules/
npm-debug.log
coverage/
coverage/
3 changes: 3 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"esversion": 6
}
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ cache:
script:
- npm start &
- npm test
after_success:
- npm run test-with-coverage --token
services:
- http-server

Expand Down
29 changes: 15 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@



# Send-IT
[![Build Status](https://travis-ci.com/ipaullly/sendIT.svg?branch=ch-test-user-interactions-163458249)](https://travis-ci.com/ipaullly/sendIT)
# Send-IT
[![Build Status](https://travis-ci.com/ipaullly/sendIT.svg?branch=ch-test-user-interactions-163458249)](https://travis-ci.com/ipaullly/sendIT) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/d5026cb302e349d7b08580df620e7ecd)](https://www.codacy.com/app/ipaullly/sendIT?utm_source=github.com&utm_medium=referral&utm_content=ipaullly/sendIT&utm_campaign=Badge_Grade)

The project was done while participating in the Andela Developer Challenge simulated sprint of the application bootcamp.
This is an app that allows users to create accounts and make delivery orders. The front-end was built using vanilla javaScript and consumed endpoints built with python/flask.

The app is live on the github-pages [link](https://ipaullly.github.io/sendIT/index.html) for this repo.

## Installation
Clone the repository to your local machine
```
Expand All @@ -31,19 +33,18 @@ npm start

## Testing
Tests run using **jest** and **puppeteer**. run the following command within the project folder to see the test coverage
> npm test
```
npm test
```
Alternatively view the [Travis-CI](https://travis-ci.com/ipaullly/sendIT) build report to view coverage.

## App features
- [ ] Users can create an account and log in.
- [ ] Users can create a parcel delivery order.
- [ ] Users can change the destination of a parcel delivery order.
- [ ] Users can cancel parcel delivery order.
- [ ] Users can see the details of a delivery order.
- [ ] Admin can change the **status** and **Current-location** of a parcel delivery order.

## User Interface
The interface is available at
> [Welcome Page](https://ipaullly.github.io/sendIT/index.html)
- [ ] Users can create an account and log in.
- [ ] Users can create a parcel delivery order.
- [ ] Users can change the destination of a parcel delivery order.
- [ ] Users can cancel parcel delivery order.
- [ ] Users can see the details of a delivery order.
- [ ] Admin can change the **status** and **Current-location** of a parcel delivery order.

## Built Using
1.HTML
Expand Down
4 changes: 2 additions & 2 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ <h4>Behold our presence on social platforms</h4>
</section>

<footer>
<p>Send-IT, Copyright &copy; 2019</p>
<p>Send-IT, Copyright &copy; 2020</p>
</footer>

</body>
</html>
</html>
20 changes: 0 additions & 20 deletions build/main.bundle.js

This file was deleted.

12 changes: 4 additions & 8 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"testMatch": ["<rootDir>/tests/unit/*.js"],
"setupFiles": ["<rootDir>/tests/setup.js"],
"transform": {".*": "<rootDir>/node_modules/babel-jest"},
"moduleFileExtensions": ["js"],
"collectCoverageFrom": [
"src/*.js",
"!src/main.js"
"js/*.{js,jsx}",
"!**/node_modules/**",
"!**/vendor/**"
]
}

}
3 changes: 2 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ header a:hover{
/* squares */
#squares{
margin-top: 20px;
padding-bottom: 6rem;
}

#squares .box{
Expand Down Expand Up @@ -228,4 +229,4 @@ span.assord {
display: block;
float: none;
}
}
}
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1><span class="highlight">Send</span>-IT</h1>
<section id="display">
<div class="container">
<h1>Welcome to Send-IT</h1>
<p>Conviniently place an order with the relevant details. We strive to ensure that your package arrives to the destination with haste.</p>
<p>Conveniently place an order with the relevant details. We strive to ensure that your package arrives to the destination with haste.</p>
</div>
</section>

Expand All @@ -52,8 +52,8 @@ <h3>Sign up in under a minute</h3>
</section>

<footer>
<p>Send-IT, Copyright &copy; 2019</p>
<p>Send-IT, Copyright &copy; 2020</p>
</footer>
<script src="./js/main.js"></script>
</body>
</html>
</html>
Loading
Loading