🏁Quick Start

circle-info

Good to know: SCAN works entirely with Docker! No need to worry about different software versions, Docker handles everything.

Install SCAN in only few steps :

Clone the github project

You may clone the github project. The required files are located in the src directory.

git clone https://github.com/TC-netw4ppl/website.git

Install Docker

The best way to install our software is with Docker:

You can use https://www.portainer.ioarrow-up-right to manage your different docker containers easily.

Docker compose

Here is an example of a docker-compose used :

triangle-exclamation
Variable
Value

The name of the database

The master password of the database

The username used to connect to the database

A folder in which the contents of your database will be stored

The path where the website code is stored. ⚠️ If you clone the project from github, make sure the path points to src

The path to your SSL certificate. Can be ignored if you don't want to use https.

Recommended to secure access to the API.

The path to an apache configuration file, an example of which is given here.

Required configuration

Apache Configuration file

circle-info

You can delete the lines concerning the ssl certificate if you do not use https

A Deepl Account

SCAN automatically translates the created fields and lists. To use the automatic translation feature, you need to create an account on DeepL and fill in your Token API. The free version offers 500,000 characters per month, which is more than enough for the application's needs.

circle-info

You can find the information needed to create an account here: https://www.deepl.com/en/pro-api?cta=header-pro-api/arrow-up-right

.env file

This .env file MUST be completed and placed at the root of src

triangle-exclamation
Variable
Value

Must be leaft blank

Set false in case of production

You must put the docker sql container name. If you used the docker configuration above, put sql

You must put the same name as the one used during the docker configuration.

You must put the same username as the one used during the docker configuration.

You must put the same password as the one used during the docker configuration.

Set the default user's email. This information will be used to create the first account on the application.

Set the default user's password. This information will be used to create the first account on the application.

Set the default team name. This information will be used to create the first team. You can putDEFAULT ICRC TEAM for example.

The translation API URL. If you use the free version of deepL, the preset URL is the right one.

Your DeepL API Token

Finalize the installation

Only a few seconds left and you'll be there. Run these commands in your docker to finish!

To execute in your docker container run :

circle-info

If you used the docker configuration example above, the <APPLICATION_CONTAINER_NAME> should be app

circle-exclamation

Real last step

Visit http://localhost:<PORT> and you're in!

circle-info

<PORT> must be the one filled in for the docker's app container (2080 by default)

Congratulations, it's all over, you've earned a little beer.

Take a break

Last updated