Skip to content

Commit

Permalink
updated readme, added trailing slashes to routes (#5)
Browse files Browse the repository at this point in the history
Co-authored-by: Andy Bryant <[email protected]>
  • Loading branch information
aaronk and Andy Bryant authored Apr 9, 2020
1 parent d0faa0a commit 2a485f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ processed (project_name substituted) are listed by name and extension:

> mkdir ifxtest
> cd ifxtest
> django-admin startproject --template=https://github.com/harvardinformatics/ifxdjango/archive/v1.1.zip -e py,html,js,conf,ini -n .env.development,.env.production,Dockerfile-drf,docker-compose.yml,Makefile ifxtest .
> django-admin startproject --template=https://github.com/harvardinformatics/ifxdjango/archive/v1.1.zip -e py,html,js,conf,ini,vue -n .env.development,.env.production,Dockerfile-drf,docker-compose.yml,Makefile ifxtest .

Add a 40 character REST application token to the docker-compose file at the *IFX_APP_TOKEN environment variable of the drf
section. This will allow the application to interact with other systems. Make sure this is different from other applications in the development environment (nanites/initDev.py has a pretty good list). You may want to add this to the set of application
Expand All @@ -26,7 +26,7 @@ After several minutes of this, you should be able to start up the application

> docker-compose up

Before attempting to access the authenticated "Demo" page, run the applyDevData management command to ensure that the test user is properly setup.
Before logging in or attempting to access the authenticated "Demo" page (which automatically attemps to log you in), run the applyDevData management command to ensure that the test user is properly set up.

> docker-compose run drf ./manage.py applyDevData

10 changes: 5 additions & 5 deletions frontend/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const router = new Router({
mode: 'history',
routes: [
{
path: '/login',
path: '/login/',
name: 'Login',
component: Login,
pathToRegexpOptions: {strict: true},
Expand All @@ -28,7 +28,7 @@ const router = new Router({
}
},
{
path: '/logout',
path: '/logout/',
name: 'Logout',
component: Logout,
pathToRegexpOptions: {strict: true},
Expand All @@ -47,7 +47,7 @@ const router = new Router({
pathToRegexpOptions: {strict: true}
},
{
path: '/demo',
path: '/demo/',
name: 'Demo',
component: Demo,
pathToRegexpOptions: {strict: true},
Expand All @@ -60,13 +60,13 @@ const router = new Router({
}
},
{
path: '/404',
path: '/404/',
name: 'NotFound',
component: NotFound
},
{
path: '*',
redirect: '/404'
redirect: '/404/'
}
]
})
Expand Down

0 comments on commit 2a485f1

Please sign in to comment.