Harden dev environment configuration
Some checks failed
CI / Backend Tests (push) Has been cancelled
CI / Frontend Tests (push) Has been cancelled
CI / Build Docker Images (push) Has been cancelled

This commit is contained in:
2025-10-16 17:48:26 -05:00
parent 75c7430d01
commit 9355d5c7c2
20 changed files with 26341 additions and 42 deletions

View File

@@ -0,0 +1,3 @@
HOST=0.0.0.0
PORT=12000
REACT_APP_API_URL=http://localhost:3001

View File

@@ -3,10 +3,13 @@ FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm ci
COPY . .
EXPOSE 3000
ENV HOST=0.0.0.0 \
PORT=12000
EXPOSE 12000
CMD ["npm", "start"]

20671
frontend/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import './lib/configureAxios';
import App from './App';
const root = ReactDOM.createRoot(document.getElementById('root'));

View File

@@ -0,0 +1,11 @@
import axios from 'axios';
const baseURL = process.env.REACT_APP_API_URL || '';
if (baseURL) {
axios.defaults.baseURL = baseURL;
}
axios.defaults.headers.common['Content-Type'] = 'application/json';
export default axios;