Giter Club home page Giter Club logo

nodatabaseblog's Introduction

NoDatabaseBlog

A Blog created using Spring MVC. Evernote is used to create/update the blog posts.

How to use

  1. If you want to suggest changes, then fork and send a pull request. Or just add an issue.

What do I do after downloading?

  1. Ensure you have Java 1.8 and Maven 3.2.3 installed.
  2. mvn clean install -U in the app dir.
  3. If you are planning to use Heroku, then download the Heroku toolbelt. This will also download foreman.
  4. Deploy.
  5. One way to deploy the application locally is to run foreman start web
  6. java $JAVA_OPTS -jar target/dependency/jetty-runner.jar --port $PORT target/*.war from the app dir. This is what foreman would do too.
  7. Another way is to mvn tomcat7:run. This can be done from IntelliJ CE from the Plugins section of the 'Maven projects' pane.
  8. 4.1 and 4.2 will host the app on localhost:5000, whereas tomcat7 will host on localhost:8080, by default. Confirm that a simple HTML page is displayed and has a title tag in head with Company.com as a value.

Deploying to Heroku

  1. heroku create
  2. Edit your pom.xml to add the generated (or custom) app name in the <profile> section. I.e., replace immense-plateau-6256 with your newly generated app name.
  3. Deploy
  4. First way to deploy to heroku is by using a git remote. git push heroku master . This will push your local code as well as execute a maven compile and deploy the generated war.
  5. Second way : assuming that you had performed a mvn clean install or mvn package locally, you will have a *.war file ready to be deployed. Using the included heroku maven plugin, execute mvn heroku:deploy-war -P test.
  6. If either of the above 2 steps work out without issue, then heroku open to see the website live in your default browser.

nodatabaseblog's People

Contributors

dahotre avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.