Skip to content

upf-gti/SignBank

Repository files navigation

Environment Configuration

Set the following environment variables in your .env file:

  • BASEURL: The base URL of your application (e.g., https://signbank.example.com)
  • Other variables as specified in schema.env file

Nginx Configuration

The Nginx configuration is located in the nginx/ directory. To update the configuration:

  1. Edit the nginx/nginx.conf file, for test, local or production
  2. Update the server_name directive to match your domain
  3. Restart the Nginx container:
docker-compose restart nginx

Local Development

To start the project locally:

docker-compose -f docker-compose-local.yaml build
docker-compose -f docker-compose-local.yaml up

Test Deployment

To deploy the project in test mode:

docker-compose -f docker-compose-test.yaml build
docker-compose -f docker-compose-test.yaml up

Seeding the Database

To seed the database with initial data:

  1. Navigate to the MongoDB folder:
cd mongoDB
  1. Install dependencies and run the seed script:
npm install
npm run seed

Or if you don't have npm, you can execute this command from inside mongoDB container

Then restart backend container to sync all words into typesense

Production Deployment

To deploy the project in production mode:

docker-compose -f docker-compose-production.yaml build
docker-compose -f docker-compose-production.yaml up

Project Structure

  • frontend/ - The web client application
  • backend/ - API server
  • mongoDB/ - Database configuration and seed scripts
  • nginx/ - Nginx configuration for serving the application
  • FileServer/ - Server for file storage
  • typesense/ - Search engine configuration
  • certbot/ - SSL certificate management

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •