This was a semester long project created for a Software Engineering course. Our client, Professor Gusty Cooper, is a cycling enthusiast and has a dream of owning his own e-commerce website when he retires. Our goal was to create a functionally working e-commerce website, excluding the encryptions for personnel information and transactions. From this project I learned about the software development process and how to write software documentation. I also learned how to be a leader on the team and help team members complete their tasks. Lastly, if I were to re-do this project I would scale down the requirements to fit the time allotted, spend more time designing the project, and begin implementation earlier.
This project was locally hosted on Cloud9. The following are some images of the website.
To download the project follow the instructions below.
- Cloud9 Setup
Cloud9 (https://c9.io/) is required to locally host the website. The testing team must create or log into a Cloud9 account, and create a new workspace with a blank template. Once a workspace is created, the team will then clone the git repository in the Cloud9 terminal with the following command:
> git clone GitHub.com/qogden/Gustys-bike-shop
- Database Setup
To set up the database, the team will run the following command prior to starting the server. These will install the necessary libraries to properly run the web application.
> sudo apt-get update
> sudo apt-get install python-psycopg2
> sudo apt-get install postgresql-contrib-9.3
> sudo easy_install flask markdown
> sudo easy_install flask-socketio
> sudo pip install flask-blogging
> sudo pip install sqlalchemy
The server can be started with the following commands:
> sudo service postgresql start
> sudo sudo -u postgres psql
Finally, the SQL file is loaded into PostgreSQL with the following command:
> \i Gustys-bike-shop/bikes.sql
- Running the Application
The application can be started by opening the server.py file, and clicking the run button on the top of the page. Alternatively, it can be run from the command line using the following command:
> python server.py
A new tab will open with a URL link to where the website is running locally.