A responsive Single Page Application (SPA), written in Angular v5.2, for a home bar. The G Spot website displays a reference of karaoke songs, beer, and drinks availible. It also has a contact form to email the bar owners.
All of this data for beer, booze, and karaoke songs are stored in JSON files in ./assets/JSON/. Updating these files updates the website.
This project was generated with Angular CLI. The HTML/CSS templates utilize Bootstrap version 3.3.7 for styling. The frontend uses PrimeNG as an added UI framework.
- Background
- Installation
- Development Environment
- Production
- Running unit tests
- Running end-to-end tests
- Further help
- TODO
- Maintainers
- Contribute
- License
The G Spot is the name of my home bar, which was completed in 2017. It got it's name from my wife and I's last names. The website was setup partially as a joke, but also as a reference. The website can be used to find karaoke track #s from your phone. It can also be used by friends to see what drinks are avialiable before coming over.
-
Download and install Node.js using these instructions.
-
Download and install GitHub Desktop using these instructions
-
Clone this repository using the instructions from GitHub
- Ensure you use command:
git clone https://github.com/ZGrauer/GSpotBar.git
- Ensure you use command:
-
Install all dependencies by entering
npm install
from a terminal within the cloned folder. -
Go to Google reCAPTCHA/ and setup your domain for
reCAPTCHA V2
. Record the site key and secret key. -
Go to your project file
/src/app/contact/contact.component.html
, and update thesiteKey
value within the<p-captcha>
tag on line 39. -
Go to your project file
/src/app/contact/email.service.ts
, and update theprivate emailUrl
value on line 17 with your personal email. This is where the contact form will go to. -
Edit Angular files as needed within the
./src/app/
folder. Use the Angular CLI to add components.
Run ng serve
in a terminal from the project directory for a dev server. The app can then be run by navigating to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
$ ng serve
From a terminal run ng generate component component-name
to generate a new component using the Angular CLI. You can also use ng generate directive/pipe/service/class/module
.
$ ng generate component component-name
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod --aot
flag for a production build.
$ ng build
Run ng test
to execute the unit tests via Karma.
$ ng test
Run ng e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.
$ ng e2e
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
$ ng help
- [] Swap formspree to local PHP path in email service. Spin up server and test.
Feel free to dive in! Open an issue or submit PRs.
Customer Tracker follows the Contributor Covenant Code of Conduct.
GNU © Zachary Grauerholz