Hi, everyone!
Today we are going to show the steps for configuring MongoDB 3.3.4 with Spring Boot 1.5 in Windows 7.
First you have to download the MongoDB:
Here you have the official link: https://docs.mongodb.com/manual/installation/
Now here is the most important think, that don't tells the manual of mongodb:
You have to download the Windows parche: Windows6.1-KB2999226-x64.msu and it will add a dll file that is necessary for running MongoDB.
Then, you have to create the directory C:/db/data.
Then, when MongoDB is installed and you have create the directory, you have to run the file C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe.
This file will open the MongoDB connection.
Here you have MongoDB running!
For the other side, you have to configure your mongoDB database connectio and driver in Spring Boot configuration.
You have to create a file named application-{environment}.yml with the next content:
spring:
datasource:
url: jdbc:oracle:thin:@//localhost:27017/howdyl
driver-class-name: mongodb.jdbc.MongoDriver
jpa:
show-sql: true
hibernate:
showSql: true
dialect: org.hibernate.dialect.Oracle10gDialect
And the magic, you run your application a mongoDB is running.
For any question, ask me!
Try it and have fun!
Posts about Angular, Ionic, Java, Artificial Intelligence and Unity written by David Martinez Ros @davidnezan.
Mostrando entradas con la etiqueta configuring. Mostrar todas las entradas
Mostrando entradas con la etiqueta configuring. Mostrar todas las entradas
miércoles, 26 de abril de 2017
martes, 18 de abril de 2017
Keys for configure Bootstrap 3 in Angular 4 Project!
Hi,
Today, I'm going to explain the steps for configure Bootstrap in an Angular application.
First of all, we have to add Bootstrap in our application with:
> npm install --save ngx-bootstrap@latest
Then, we have to open the index.html file and add:
You have to know that any div with class col-**-** need a parent div with class row.
Today, I'm going to explain the steps for configure Bootstrap in an Angular application.
First of all, we have to add Bootstrap in our application with:
> npm install --save ngx-bootstrap@latest
Then, we have to open the index.html file and add:
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
Then, we have all we need for use Bootstrap 3 in Angular 4.
Now, we have to configure all the html files following the structure:
<div class="row">
<div class="col-xs-12 col-sm-6 col-lg-3">
...
</div>
... (any repeations you need)
</div>
You have to know that any div with class col-**-** need a parent div with class row.
Also, you have to know that col-xs is for mobiles dispositive, col-sm for tablets dispositives and col-lg for computer dispositive.
Here you have the documentation of the Bootstrap 3 style; All you need is here:
When you domain all this css styles, you can improve new approach for your develops.
Try it and have fun!
Suscribirse a:
Entradas (Atom)