AF Connect Demo
AF Connect Demo is an example website that demonstrates the use-case of pre-filling forms with CV data from AF Connect.
Operating the website in development mode utilizes Nodemon to automatically restart the server upon source code changes.
Versions, current dev state and future
No versions yet.
No getting started guidelines yet.
You need Administrative privilege to make this change
Acquire the source code from this repository and install all dependencies using NPM.
git clone https://github.com/MagnumOpuses/af-connect-demo.git cd af-connect-demo npm install
Listed below are methods of overriding the default configuration with custom properties.
Read move about environment configuration here: dotenv
Provide custom properties via configuration file
.envfile at the root of the
af-connect-demodirectory with the following content.
.envfile is ignored by the rules set in
.gitignore, therefore in this file you may freely customizable the deployment to your own needs.
Execute all test cases to ensure that all its features work as intended.
Deploy the site with Docker in production mode
$ docker build --no-cache -t af-connect-demo . $ docker run -p 3000:3000 af-connect-demo
Deploy the site with Docker in stage mode
$ docker build --build-arg ARG_BUILDNAME=stage --no-cache -t af-connect-demo . $ docker run -p 3000:3000 af-connect-demo
Deploy the site in development mode
In development mode the Nodemon will automatically detect changes to the source code and restart the server.
npm run dev
Run the site on localhost
To run it on your local computer you have to add a (self signed) certificate and a private key and put those entries in to the .env file.
#Only Localhost config LOCAL_PORT=443 PKEY = './cert_and_key/hacksparrow-key.pem' SSLCERT = './cert_and_key/hacksparrow-cert.pem' #Config PORT=3000
npm run local
- Node.js v10.15.3 (Runtime environment)
- NPM v6.4.1 (Node package manager)
- Express v4.17.1 (Web application framework)
- Nodemon v1.19.2 (Change monitor)
- EJS v2.7.1 (Template engine)
- Bootstrap v4.3.1 (CSS framework)
We would love if you'd like to help us build and improve this product for the benefit of everyone. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Any contributions, feedback and suggestions are more than welcome.
Please read our guidelines for contribution here.
No acknowledgments yet.