-
Notifications
You must be signed in to change notification settings - Fork 5
Getting Started
VS Code is definitely the best IDE to use when developing a Vue.js/JavaScript application. I highly recommend installing it as a first step. Once you've done that, there are a variety of extensions for VS Code you can explore. For this project, I highly recommend downloading the following extensions:
- npm by egamma - For integration with Node.js
- Vetur by Pine Wu - For integration with Vue.js
- Prettier - Code formatter by Prettier - For code formatting (optional)
Just set up VS Code now? Learn how to use Git with VS Code here
-
Clone the code from the github repo:
https://github.com/AccessMyResearch/AccessMyResearch.git
Find out how to clone the repo here.
-
From the AccessMyResearch (root) directory, run
npm install
-
Run
npm install @vue/cli -g
to install the Vue CLI -
Finally, run
npm run dev
to build and test the code
Once The dependencies are installed, you just need to run
npm run dev
when you want to build and test the code
-
npm install
- Installs all dependencies -
npm ci
- Removes all dependencies and installs them all cleanly -
npm run build
- Builds the code -
npm run dev
- Automatically builds all changes & runs the code locally/on network -
npm test
- Runs the code test suites (with Jest) -
npm run serve
- Serves the code (not going to be useful for a while) -
npm run lint
- Starts the Vue linter
-
You'll need to install docker (Windows, macOS, Linux)
-
Run
docker-compose up -d --build
from the base directory containing the dockerfile fileNow, you should be able to access the web app at
127.0.0.1:8080
.Check
docker ps
to see it running!