API for translating old texts, using :
- docker as service manager
- sails.js as backend API
- react as frontend
- using SSH
git clone [email protected]:EcrituresNumeriques/anthologie-API.git
- using HTTPS
git clone https://github.com/EcrituresNumeriques/anthologie-API.git
cd anthologie-API/src/
- config/session.js (secret and redis connection, if changed)
- config/connections.js (mysql password/user, optionnal)
- in docker-compose.yaml (mysql password/user, optionnal)
docker-compose up -d
Providing you use a reverse dns and a letsencrypt cerbot container
you still need to load data and scheme into the database. we'll try to keep an updated version of the production database on the repo.
to make it easier, you can use docker-compose -f docker-compose.dev.yaml up -d
to spawn a phpmyadmin container and the anthologia on port 8181 and 8080 respectively.
If you want to develop, the best way is to change de last step and use the docker-compose inside src/ to spin mysql/redis, and sails lift for the backend. TODO : add autoreload etc to the dev env