curl -fsSL https://railway.com/install.sh | shrailway linkbrew install libpqwinget install postgresqlsudo apt install postgresql-clientpsql -h <host> -u <user> -P <port> -p <database>enter password when prompted
replace <host>, <user>, <port> and <database> with the values from the railway database variables
or with railway-cli
railway connect postgresexport SPRING_DATASOURCE_URL=<connection-string>
export SPRING_DATASOURCE_USERNAME=<username>
export SPRING_DATASOURCE_PASSWORD=<password>
export SWAGGERHUB_TOKEN=<token>
export JWT_SECRET=<your-very-long-secret-key-that-is-at-least-32-characters-long>
export SPRING_MAIL_HOST=smtp.gmail.com
export SPRING_MAIL_PORT=587
export SPRING_MAIL_USERNAME=<mail_username>
export SPRING_MAIL_PASSWORD=<mail_password>replace <connection-string>, <username>, <password> mail_username mail_password with the values from the railway backend variables
for <connection-string> use SPRING_DATASOURCE_PUBLIC_URL value from the backend variables
and <token> with SwaggerHub token
./mvnw spring-boot:run./mvnw clean verify -Papi-documentationaccess the server at http://localhost:8080
npm install -g dbdocs && dbdocs logindbdocs db2dbml postgres <connection-string> -o database.dbmlget the connection string from the railway dashboard (DATABASE_PUBLIC_URL)
dbdocs build database.dbml --project awerks/se_projectgit add .
git commit -m "your message"
git pushRailway will automatically deploy the changes to the production environment.
or using railway-cli
railway upThis project is licensed under the MIT License - see the LICENSE file for details.
