githubEdit

Back-end

Instructions for running the application server

Step-by-step

2. Clone the repository to your server

$ git clone https://github.com/guiaedutec/geos-backend.git

3. Access the created folder

$ cd geos-backend

4. Environment variables

At the root of the project, rename the .env.example file to just .env

5. Set environment variables as needed

circle-info

Attention!

For the functionalities to work correctly, it is mandatory to fill in the email configuration variables.

.env
RAILS_ENV=development

# Default Database Credentials
# We recommend changing the username and password in the database for security reasons!
MONGODB_HOST_1=host.docker.internal:30998
MONGODB_DATABASE=guia_edutec
MONGODB_USER=geos
MONGODB_PASS=<password-default>

# Email settings
MAIL_SERVER=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_DOMAIN=
MAIL_FROM=
MAIL_SENDER=

# URLs base
# Configure as needed
FRONTEND_URL=host.docker.internal:8001
BACKEND_URL=host.docker.internal:8000

# Enter a 128-character random hash containing numbers and lowercase letters
SECRET_KEY_BASE=

6. Run docker-compose command

triangle-exclamation

Last updated