A live demo of this application can be found at http://dv-rpi2.lnu.se
This application depends on httrack, that must be installed before you can actually use this application.
- Clone this repository or download the .zip file.
- Extract folder to preferred location.
- Open up the terminal in the folder.
- Install the required dependencies by typing
npm install
- Create a
.env
file for the environment variables, with the following content
{
SERVER_DOMAIN="http://localhost:3000"
EMAIL_PASS="YOUR_EMAIL_PASSWORD"
EMAIL_USER="YOUR_EMAIL"
IS_RUNNING_LINUX_OS="SET_TO_true_OR_false"
JWT_SECRET="A_RANDOM_SECRET"
MONGODB="YOUR_MONGODB_CONNECTION_STRING"
SESSION_SECRET="A_RANDOM_SECRET"
PORT=3000
ARCHIVES_FOLDER="archives"
PREVIEWS_FOLDER="previews"
}
- Start the application by typing
npm start
(ornpm run dev
for development) - The application is now running at http://localhost:3000
- Build the client files for production by typing
npm run build
This will create a folder named dist
(stands for distribution). The folder will include a bundled / minified version of the JavaScript and CSS.