Skip to content

Commit

Permalink
Refactor readme
Browse files Browse the repository at this point in the history
  • Loading branch information
josephspurrier committed Mar 7, 2020
1 parent 6ca5cec commit 0207662
Showing 1 changed file with 26 additions and 21 deletions.
47 changes: 26 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ docker-compose down

## Environment Preparation

Once you have cloned the repo, you will need the following for local development.
Once you have cloned the repo, you will need the following tools for local development.

### Go

Expand All @@ -47,6 +47,23 @@ All of the commands below assume you have your GOPATH set to the root of this pr

You should install [NodeJS and npm](https://nodejs.org/).

These are the current versions on the front-end components:

- Nuxt.js [v2.6.3](https://github.com/nuxt/nuxt.js/releases/tag/v2.6.3) - you should use the [2.5.X documentation](https://nuxtjs.org/guide/release-notes)
- Vue.js [v2.6.10](https://github.com/vuejs/vue/releases/tag/v2.6.10)
- Vuex [v3.1.0](https://github.com/vuejs/vuex/releases/tag/v3.1.0)
- Bulma [v1.2.3](https://www.npmjs.com/package/@nuxtjs/bulma/v/1.2.3) - you should use the [0.7.4 documentation](https://bulma.io/documentation/)

Yuu can use these commands to interact with nuxt.

```bash
# Check the version of nuxt.
make nuxt-upgrade

# Upgrade nuxt to the new version.
make nuxt-upgrade
```

### Environment Variables

You can also use [direnv](https://direnv.net/) which sets your environment variables based on your current directory. For instance, you can install direnv, create a file in the root of this project called `.envrc`, and paste in the following:
Expand All @@ -62,25 +79,6 @@ export PATH=$PATH:$(npm bin)

Save the file and type `direnv allow`. That will automatically set environment variables when you `CD` into the project root and child folders.

## Current Versions

These are the current versions on the front-end components:

- Nuxt.js [v2.6.3](https://github.com/nuxt/nuxt.js/releases/tag/v2.6.3) - you should use the [2.5.X documentation](https://nuxtjs.org/guide/release-notes)
- Vue.js [v2.6.10](https://github.com/vuejs/vue/releases/tag/v2.6.10)
- Vuex [v3.1.0](https://github.com/vuejs/vuex/releases/tag/v3.1.0)
- Bulma [v1.2.3](https://www.npmjs.com/package/@nuxtjs/bulma/v/1.2.3) - you should use the [0.7.4 documentation](https://bulma.io/documentation/)

### Update nuxt

```bash
# Upgrade nuxt to the 1.0 version.
make nuxt-upgrade

# Check the version of nuxt.
make nuxt-upgrade
```

## Getting Started with Development

You can run these commands from different terminals to start the services.
Expand Down Expand Up @@ -139,8 +137,10 @@ make gvt-get
# You can now remove the folder: src/github.com/FiloSottile/gvt
# You should now add the {PROJECTROOT}/bin folder to your $PATH to make gvt available from your terminal.

# Make sure you CD to the api folder before using gvt:
# Make sure you CD to the api folder before using gvt.
cd $GOPATH/src/app/api

# Here is a sample command to add a new dependency to the project.
gvt fetch github.com/user/project
```

Expand All @@ -154,6 +154,11 @@ make swagger-get

# Generate the swagger spec.
make swagger-gen

# Your browser will open to: http://petstore.swagger.io/?url=http://localhost:{RANDOMPORT}/swagger.json

# The output file will be here:
# src/app/api/static/swagger/swagger.json
```

## Debug UI Tests
Expand Down

0 comments on commit 0207662

Please sign in to comment.