API repository of Laundry Labels App.
- Clone repository
- Install Nodejs
- Install npm dependencies:
npm install
- Copy .env-example and rename to .env:
cp .env-example .env
- Install Docker Engine and Docker Compose
- Run containers:
docker compose -f docker-compose.dev.yml up
- Run server:
npm run dev
- Install MongoDB or get database from Atlas
- Install Redis or get Redis store from Redis Enterprise
- Run server:
npm run dev
- Fill MongoDB and Redis credentials in .env
DATABASE_URI=Address from Atlas
REDIS_URI=Address from Redis Enterprise
All environment values used by the server must be in the .env
file
If you want to change the paths of user files, edit this value
# UPLOAD_PATH=/srv/laundrylabelsapp/
If you want to change the paths of the server log files, edit this value
# LOGS_PATH=/var/log/laundrylabelsapp/
Captcha key from https://www.hcaptcha.com, used for production server
# CAPTCHA_SECRET_KEY=CAPTCHA_KEY_from_hcaptcha.com
Letsencrypt credentials for creating SSL certificates, used with docker-compose.yml
# LETSENCRYPT_EMAIL=yourdomainemail@examle.com
# LETSENCRYPT_DOMAINS_LIST=example.com,www.example.com,api.example.com
# If you want to store user files in the cloud, register at https://cloudinary.com and fill API credentials
# IS_CLOUD_SERVER=true
# CLOUDINARY_CLOUD_NAME=CLOUD_NAME_from_cloudinary.com
# CLOUDINARY_API_KEY=CLOUD_API_KEY_from_cloudinary.com
# CLOUDINARY_API_SECRET=CLOUD_SECRET_from_cloudinary.com
This project is licensed under the GNU GPLv3 License.