Skip to content

Commit

Permalink
añadiendo readme
Browse files Browse the repository at this point in the history
  • Loading branch information
betsyvies committed Mar 5, 2018
1 parent 7b1b031 commit d7d9c49
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 27 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# E-commerce
***


### Objetivo:

Expand All @@ -13,15 +11,17 @@

### Demo:

![Sin titulo](public/assets/docs/index.PNG)

![Sin titulo](public/assets/docs/index.png)

* Cuando seleccionas un de los item de la barra de navegación por ejemplo alcatel te mostrará lo siguiente:

![Sin titulo](public/assets/docs/alcatel.PNG)
![Sin titulo](public/assets/docs/alcatel.png)

En la anterior imagen se puede observar que se cargaron todos los celulares del modelo alcatel, este proceso se realiza para los demás modelos de celulares.


![Sin titulo](public/assets/docs/product.png)

### Desarollado para

[Laboratoria](http://laboratoria.la)
Expand Down
15 changes: 1 addition & 14 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
const express = require('express');
// Body parser
// const bodyParser = require('body-parser');

const app = express();
// const port = process.env.PORT || 3000;

// app.use(bodyParser.json());
// app.use(bodyParser.urlencoded({extended: false}));

var port = process.env.PORT || 8080;

// var todoRoutes = require('./routes/ruta');

app.use(express.static(__dirname + '/views'));
app.use(express.static(__dirname + '/public'));

app.get('/', function (req, res) {
app.get('/', function(req, res) {
res.sendfile('index.html');
});
// app.get('/alcatel', todoRoutes);


app.listen(port);
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "* **Track:** _Especialización Front-end_\r * **Curso:** _CONSTRUYE UNA SINGLE PAGE APP (SPA) MULTI-USUARIO CONSUMIENDO DATA REMOTA_\r * **Unidad:** _Producto final_",
"main": "index.js",
"scripts": {
"start": "node index.js",
"start": "nodemon index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand All @@ -18,7 +18,10 @@
},
"homepage": "https://github.com/MelynaPernia/ecommerse-product-final#readme",
"dependencies": {
"body-parser": "1.18.2",
"body-parser": "^1.18.2",
"express": "^4.16.2"
},
"devDependencies": {
"nodemon": "^1.17.1"
}
}
Binary file added public/assets/docs/product.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/assets/images/E-commerse.png
Binary file not shown.
8 changes: 2 additions & 6 deletions views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
</form>
</div>
</nav>

</header>

<section>
Expand All @@ -86,11 +85,8 @@ <h1>Los mejores precios en celulares</h1>
</section>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous">
</script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="js/components.js"></script>
<script src="js/app.js"></script>
</body>
Expand Down

0 comments on commit d7d9c49

Please sign in to comment.