-
Notifications
You must be signed in to change notification settings - Fork 4
Development Setup
Sajjad Anwar edited this page Nov 4, 2020
·
9 revisions
AIP is developed using Node JS and React. To get started, ensure you have Node JS installed on your computer. We recommend using nvm to manage multiple versions of Node.
- Setup nvm and Node
- Setup nvm, follow the guide here
- Clone this repo
git clone https://github.com/developmentseed/catalyst-aip.git - Change directory into the repo.
cd catalyst-aip - Setup the appropriate node version by running
nvm install
- Install dependencies
yarn install
- Add the environment variables
- The
.env.examplefile is a sample for the environment variable necessary to run the application. -
cp .env.example .env.developmentto use withyarn develop -
cp .env.example .env.productionto use withyarn build— see the Deploying section.
- Start the application
-
yarn developand visit http://localhost:8000
Currently, the application is automatically deployed to a service called Surge. Surge is a simple way to publish websites directly with a single command. This is setup using Github Actions. Any commit to the main branch will deploy the application.