Skip to content

Commit

Permalink
Merge pull request #127 from emenlu/add-setup-section
Browse files Browse the repository at this point in the history
Update getting started and contributing files
  • Loading branch information
smeets committed Oct 4, 2017
2 parents bc24278 + 4f41c4f commit cc504b8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
10 changes: 8 additions & 2 deletions docs/dev-docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ Contributing

This file is mirrored [here](https://raw.githubusercontent.com/emenlu/connect/master/CONTRIBUTING.md).


Licensing
---------
connect is licensed under the BSD 2-clause license.

Documentation
-------------
All documentation is avaiable at [readthedocs](https://serpconnect.rtfd.io) for developer guides.
All documentation is avaiable at [readthedocs](http://serpconnect.rtfd.io) for developer guides.

Join our [slack](https://serp-group.slack.com) channel for questions and other stuff!

Depedencies
-----------
Expand All @@ -20,6 +21,8 @@ Connect itself is mainly built on [pippo](https://pippo.ro) and [jcypher](https:
- java 1.8
- neo4j 2.X.Y ([website](https://neo4j.com/download/other-releases/))

For more information about getting started, see the documentation.

Versioning strategy
-------------------
The `master` branch receives all development work via merges from feature branches.
Expand Down Expand Up @@ -52,3 +55,6 @@ Landing the PR
- It is recommended (but not *required*) to rebase your commits into a clean flow (to simplify review)
- Mention @emenlu when your PR is ready and she will assign someone to poke at it

Students @ LTH
--------------
For students at LTH, Lunds University there exists a public Trello board [here](https://trello.com/b/5h2wb7wz/connect-open-tasks). Tasks from this board can give you some $$$ when completed.
28 changes: 23 additions & 5 deletions docs/dev-docs/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
Getting Started
===============

This file is dedicated to getting you ready to start developing. If you have questions, head over to our [slack](https://serp-group.slack.com) channel and fire away!

## Backend

### Setup
We start with the backend, simply because it is required for you to have any functionality on the frontend. A high-level checklist is:

- install java 8 (sdk & jre)
- install maven version 3
- install neo4j version 2.X.Y
- logon `localhost:7474` and change password
- update password in `application.properties` in repo.
- start with `mvn exec:java -Dpippo.mode=dev`

### Setting up the backend

#### java 8
Java 8 (SDK & JRE) is required. Almost all os have a standard way of installing and upgrading java. These guides may work for you, but ideally you should look it up.
Expand Down Expand Up @@ -116,9 +127,16 @@ To use Eclipse, simply import the backend files as a github repository. We recom

## Frontend

### Setup
The frontend project is often much simpler to install since it only depends on nodejs, thus this section is mainly on how to install nodejs. The high-level checklist is:

#### nodejs
- install nodejs (v5 or v6)
- run `npm install` in repo.
- run `make dev`
- browse to `localhost:8181`

### Setting up the frontend

#### installing nodejs

The frontend relies on nodejs to compile page templates and style files. Node.js has its own package manager, called `npm`, which lists dependencies in a `package.json` file. Thus the only programs you need to manually install are `npm` and `node`. Thankfully, `npm` is bundled with `node` so installing `node` is sufficient.

Expand All @@ -143,11 +161,11 @@ Most popular linux distros have up-to-date packages of `node` and this is the ea

If this fails you must download a tarball and put `node` and `npm` into `/usr/bin` or similar. Some linuxes have a program called `alternative` to symlink files into `/usr/bin`.

#### packages
#### installing packages

Type `npm install` in the repository to install all dependencies. Then try to run the dev. server using `make dev`. If this fails, report to Axel. Otherwise you are good to go!

### Design
### Overview

Here is an overview of the different components that make up the frontend.
![img](../images/frontend.svg)
Expand Down

0 comments on commit cc504b8

Please sign in to comment.