πQuick Start
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.gitgit clone [email protected]:TC-netw4ppl/doc.gitgh repo clone TC-netw4ppl/docInstall Docker
The best way to install our software is with Docker:
You can use https://www.portainer.io to manage your different docker containers easily.
Docker compose
Here is an example of a docker-compose used :
Warning : Please, make sure to correctly fill the following variables
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
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.
You can find the information needed to create an account here: https://www.deepl.com/en/pro-api?cta=header-pro-api/
.env file
This .env file MUST be completed and placed at the root of src
Warning : Please, make sure to correctly fill the following variables
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 :
If you used the docker configuration example above, the <APPLICATION_CONTAINER_NAME> should be app
Make sure you are in the docker before executing the commands.
Real last step
Visit http://localhost:<PORT> and you're in!
<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.
Last updated