- NodeJS version >= 8 LTS && NPM (https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-up-node-on-ec2-instance.html)
- Yarn (via npm install -g yarn)
- PostgreSQL
- Clone the respository and cd into the directory
$ https://github.com/corykitchens/cci-ransomware.git && cd cci-ransomware/
- Install the dependencies in both server/client directory
cci-ransomware $] npm install
cci-ransomware $] cd client/
client $] npm install
- Run Yarn build to ready the client-side code for production
client $] yarn build
- Change back to the project root directory. And create your .ENV file containing the following environment variables (Note this could also be done with Parameter Store)
cci-ransomware $] touch .env
- Example .ENV file
PGHOST=yourpghostname or localhost
PGUSER=`yourusername`
PGDATABASE=`yourdatabasename`
PGPASSWORD=`yourpassword`
PGPORT=5432
-
Execute the
db/schema.sql
to build the tables and initial mock data. Execute viapgAdmin
or via pg shell -
Run the server
cci-ransomware $] npm start