feat: Set up initial Docker Compose environment for client and server with Nginx, Express, MongoDB, and JWT/Google OAuth authentication.
This commit is contained in:
6
server/.env.example
Normal file
6
server/.env.example
Normal file
@@ -0,0 +1,6 @@
|
||||
mongoURI=mongodb://localhost:27017/appointment_to_examiner
|
||||
JWT_SECRET=your_jwt_secret
|
||||
GOOGLE_CLIENT_ID=your_google_client_id
|
||||
GOOGLE_CLIENT_SECRET=your_google_client_secret
|
||||
GOOGLE_REFRESH_TOKEN=your_google_refresh_token
|
||||
EMAIL_USERNAME=your_email@gmail.com
|
||||
@@ -35,7 +35,7 @@ const app = express();
|
||||
const PORT = 8080;
|
||||
|
||||
// Middleware
|
||||
app.use(cors({ origin: "http://localhost:3000", credentials: true }));
|
||||
app.use(cors({ origin: process.env.CORS_ORIGIN || "http://localhost:3000", credentials: true }));
|
||||
app.use(cookieparser());
|
||||
app.use(express.json());
|
||||
app.use(bodyParser.urlencoded({ extended: true }));
|
||||
|
||||
Reference in New Issue
Block a user