localmart is a platform for local businesses to sell their products and services to local customers.
For development:
- Docker
- Docker Compose
To start the next.js frontend, the Python backend, and the database, run:
make
To clear the database and the frontend next.js cache:
make clean-data
- If the app is not loading porperly on your machine, try:
- clearing the data with
make clean-data
- restarting with
make
- clearing the data with
We use GPG encryption to securely store sensitive files. The encrypted files are stored in the gpg-secrets/
directory and can only be decrypted by authorized team members.
-
Install GPG on your system:
# macOS brew install gnupg # Ubuntu/Debian sudo apt-get install gnupg
-
Have your own GPG key pair and upload the public key to your GitHub profile (GitHub guide on adding GPG keys)
The following commands are available:
-
Import team members' GPG keys:
# Import team members' GPG keys make import-gpg-keys
-
Encrypt a file:
# The file will be encrypted and stored in gpg-secrets/ make encrypt-file FILE=path/to/your/file # Example: Encrypt staging environment variables make encrypt-file FILE=gpg-secrets/staging.env
-
Decrypt a file:
# Only works with files in the gpg-secrets/ directory make decrypt-file FILE=gpg-secrets/your-file.gpg # Example: Decrypt staging environment variables make decrypt-file FILE=gpg-secrets/staging.env.gpg
- Only files in the
gpg-secrets/
directory with the.gpg
extension are tracked in Git - Decrypted files are automatically placed in the
gpg-secrets/
directory - You must have your private key to decrypt files
- The list of team members is maintained in the Makefile's
GITHUB_USERS
variable