/* ---------------------------- */
/* The Red Chain project */
/* ---------------------------- */
Steps to make redchain working:
-
Download the source code from github
-
Install required packages
npm install
2.2 Configure project
----- config.ini exaple ----- [database] connectionString = postgres://postgres@localhost/redchain [security] secretKey = 12345 expiresIn = 3600
-
Test the project (Control-C to cancel)
npm start
-
If the project still not working install next packages manually:
npm install pg-promise --save
npm install bluebird --save
npm install ini --save
-
Install postgres
-
Run the crebas.sql and create the database.
psql -f crebas.sql
-
For SSL You need to generate certificates:
cd bin
openssl genrsa 1024 > private.key
openssl req -new -key private.key -out cert.csr
openssl x509 -req -in cert.csr -signkey private.key -out certificate.pem
-
Start project
cd ..
npm start