This application consists of two parts, a webapp and an API server. The webapp is dependent on the API server for data transformation and to obscure the SciCrunch API key.
To get started locally, follow these instructions:
- If you haven't done it already, make a fork of this repo.
- Clone to your local computer using
git
. - Make sure that you have Node 14.0 installed. See instructions here.
- Install your IDE of choice. We recommend Visual Studio Code.
- Install the Angular CLI
npm install -g @angular/cli
For building and installing, the following instructions assume you have changed directories to the website dir (cd website
).
Run npm ci
to install the JavaScript dependencies into node_modules
.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Additional options may be configured to meet the objectives of your build. More information may be found at the following reference: https://angular.io/cli/build.
The transpiled build artifacts are located in the /website/dist/
directory. All files in the build directory should be deployed to the root directory of a static web server such as nginx or apache2. The CI/CD workflow in this repository places these build artifacts in the gh-pages
branch to be automatically served by GitHub Pages.