This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //attributes ------------------------------ | |
| MockMultipartFile file; | |
| XSSFWorkbook workbook; | |
| XSSFSheet sheet; | |
| //setup workbook and sheet --------------------------- | |
| @Before | |
| public void setup(){ | |
| workbook = new XSSFWorkbook(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //create image from container | |
| docker commit -a {authorname} {containername} {repositoryname:tag} | |
| //push image | |
| docker push {repositoryname:tag} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gradle build -s -i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. set package.json file: | |
| a. be careful about having dependencies attribute not devDependencies | |
| b. add scripts attribute as below: | |
| "scripts": { | |
| "start": "gulp webserver", //used for starting web server | |
| "postinstall": "node_modules/bower/bin/bower install", //used for installing bower dependencies | |
| } | |
| c. add engines attribute as below: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. create Procfile in the root folder of the project | |
| web java -Dserver.port=$PORT $JAVA_OPTS -jar build/libs/{app_name}.jar | |
| 2. make commit and deploy | |
| git init | |
| git add . | |
| git commit -m "commit" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. run gulp server task | |
| 2. go Run\Edit Configuration | |
| 3. click + button and create javascript debug task | |
| 3.1. set url as your server url (ex. localhost:5000) | |
| 3.2. set browser as chrome |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Add ui.bootstrap module to your app | |
| 2. Put below attributes to any html element that desire to show tooltip | |
| data-toggle="tooltip" data-placement="top" title="{{ title }}" | |
| Example: | |
| <button data-toggle="tooltip" data-placement="top" title="Save">Save</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm") | |
| private Timestamp date; | |
| By using above setting date attribute can be send to the client with that format. Otherwise you will see that date as long not | |
| formatted date as string. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM postgres:9.6 | |
| MAINTAINER gokhankcmn@gmail.com | |
| RUN mkdir /sql | |
| COPY create.sql /sql/ | |
| COPY insert.sql /sql/ | |
| EXPOSE 5433/tcp | |
| VOLUME /var/lib/postgresql/data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #create image | |
| docker build -t {image_name} -f Dockerfile . | |
| #create container | |
| docker run -d -p 5433:5432 --name {container_name} {image_name} | |
| #start container | |
| docker start {container_name} | |
| #go into the shell of the container |