- Fork the project https://github.com/codeforkansascity/cmr-clinic
- Clone from your Forked copy
- Install and Run
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
This will use https://cmr-dev-api.codeforkc.org/api
as the end point for the data.
If you need to adjust the back end you will need to do the following
- Install https://github.com/codeforkansascity/cmr-clinic-admin-api
- Setup the local build to look at your local install of cmr-clinic-admin-api
cp nuxt.config.local.example.js nuxt.config.local.js
- Change nuxt.config.local.js, the following is an example and will vary on the URL for your local install.
// Local API endpoint configuration.
//
// npm run local
//
// See package.json
//
module.exports = {
...require('./nuxt.config'),
...{
env: {
client_key: 4,
baseURL: 'http://cmr-clinic-backend.test'
},
axios: {
baseURL: 'http://cmr-clinic-backend.test'
},
}
}
- dRun the app using the local API install
npm run local