Skip to content

Commit

Permalink
Merge pull request #13 from costanzopa/develop
Browse files Browse the repository at this point in the history
Release 1.0
  • Loading branch information
pablo-costanzo authored Jun 6, 2019
2 parents 12cff5b + a33fb1e commit e8ea2b7
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 71 deletions.
111 changes: 46 additions & 65 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,89 +1,70 @@
# HolyGround
# HolyGround

The place where cosmic kites are born.
A webpage to find all the football fields where the stars (or not) are born.
The place where cosmic kites are born.
A webpage to find all the football fields where the stars (or not) are born.

## Getting Started
## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- git clone https://github.com/costanzopa/HolyGround.git

### Prerequisites
### Prerequisites

What things you need to install the software and how to install them
- Install Node JS [https://nodejs.org/es/]
- MongoDB [https://www.mongodb.com/es]

```
Give examples
```
### Installing

### Installing
- Go inside Holyground directory.
- Run command line npm install
- Create a directory call config
- Inside this directory create dev.env and test.env
- Add the following enviroment variables:
- - PORT=3001
- - DATABASEURL=mongodb://localhost/holy_ground
- - CLOUDNAME=holyground-dev
- - APIKEY=Api key from cloudinary
- - APISECRET= Api secret from cloudinary
- - GEOCODER_API_KEY= Private key from google maps.
- npm run dev

A step by step series of examples that tell you how to get a development env running
## Running the tests

Say what the step will be
- npm run test

```
Give the example
```
## Deployment

And repeat
- git add .
- git commit -m "Message."
- git push origin master

```
until finished
```
## Built With

End with an example of getting some data out of the system or using it for a little demo
- [NodeJS](https://nodejs.org/es/docs/) - The web framework used
- [MongoDB](https://docs.mongodb.com/?_ga=2.172250912.2059563990.1559787459-1649167481.1559787459) - Database Engine
- [CircleCi](https://circleci.com/docs/) - Continuous Integration server
- [Heroku](https://devcenter.heroku.com/) - Platform as Service
- [Google Maps](https://console.cloud.google.com) - Maps API

## Running the tests
## Contributing

Explain how to run the automated tests for this system
Please read [CONTRIBUTING.md](https://github.com/costanzopa/HolyGround/graphs/contributors) for details on our code of conduct, and the process for submitting pull requests to us.

### Break down into end to end tests
## Versioning

Explain what these tests test and why
We use [Git](https://git-scm.com/) for versioning. For the versions available, see the [tags on this repository](https://github.com/costanzopa/HolyGround/tags).

```
Give an example
```
## Authors

### And coding style tests
- **Pablo Costanzo** - _Initial work_ - [HolyGround](https://github.com/HolyGround)

Explain what these tests test and why
See also the list of [contributors](https://github.com/costanzopa/HolyGround/contributors) who participated in this project.

```
Give an example
```
## License

## Deployment
This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the [LICENSE.md](LICENSE.md) file for details

Add additional notes about how to deploy this on a live system

## Built With

* [Dropwizard](http://www.dropwizard.io/1.0.2/docs/) - The web framework used
* [Maven](https://maven.apache.org/) - Dependency Management
* [ROME](https://rometools.github.io/rome/) - Used to generate RSS Feeds

## Contributing

Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).

## Authors

* **Pablo Costanzo** - *Initial work* - [HolyGround](https://github.com/HolyGround)

See also the list of [contributors](https://github.com/costanzopa/HolyGround/contributors) who participated in this project.

## License

This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the [LICENSE.md](LICENSE.md) file for details

## Acknowledgments

* Hat tip to anyone whose code was used
* Inspiration
* etc
## Acknowledgments

- Hat tip to anyone whose code was used
- Inspiration
- etc
2 changes: 1 addition & 1 deletion src/models/holyground.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var mongoose = require("mongoose");
//SCHEMA SETUP
var holygroundSchema = new mongoose.Schema({
name: String,
price: String,
capacity: String,
image: String,
imageId: String,
description: String,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/holygrounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ router.put(
holyground.location = data[0].formattedAddress;
holyground.name = req.body.holyground.name;
holyground.description = req.body.holyground.description;
holyground.price = req.body.holyground.price;
holyground.capacity = req.body.holyground.capacity;
holyground.save();
req.flash("success", "Successfully Updated!");
res.redirect("/holygrounds/" + holyground._id);
Expand Down
2 changes: 1 addition & 1 deletion views/holygrounds/edit.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<input class="form-control" type="text" name="holyground[name]" value="<%= holyground.name %>">
</div>
<div class="form-group">
<input class="form-control" type="number" name="holyground[price]" value="<%= holyground.price %>">
<input class="form-control" type="number" name="holyground[capacity]" value="<%= holyground.capacity %>">
</div>
<div class="form-group">
<label>Edit Image</label>
Expand Down
2 changes: 1 addition & 1 deletion views/holygrounds/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<header class="jumbotron">
<div class="container">
<h1>This is the Holy Grounds page!</h1>
<p>View our hand-picked holy grounds from all over Buenos Aires.</p>
<p>View our hand-picked holy grounds from all over the World.</p>
<p>
<a class= "btn btn-primary btn-lg" href="/holygrounds/new">Add New Holy Ground</a>
</p>
Expand Down
2 changes: 1 addition & 1 deletion views/holygrounds/new.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<input class="form-control" type="text" name="holyground[name]" placeholder="name">
</div>
<div class="form-group">
<input class="form-control" type="number" name="holyground[price]" placeholder="price" min="1" step="1">
<input class="form-control" type="number" name="holyground[capacity]" placeholder="capacity" min="1" step="1">
</div>
<div class="form-group">
<label>Upload Image</label>
Expand Down
2 changes: 1 addition & 1 deletion views/holygrounds/show.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div class="thumbnail">
<img class="img-responsive" src="<%= holyground.image %>">
<div class="caption-full">
<h4 class="pull-right">$<%= holyground.price %>/hour</h4>
<h4 class="pull-right">Capacity: <%= holyground.capacity %></h4>
<h4><a><%= holyground.name %></a></h4>
<p><%= holyground.description %></p>
<p>
Expand Down

0 comments on commit e8ea2b7

Please sign in to comment.