Commit 655c7e76 authored by janithgamage1.ed's avatar janithgamage1.ed

fix: update

parent 865b85b6
DB_PASSWORD = JppbU6MZeHfOj7sp
DB_USERNAME = admin
\ No newline at end of file
......@@ -73,7 +73,7 @@ web_modules/
.yarn-integrity
# dotenv environment variable files
.env
# .env
.env.development.local
.env.test.local
.env.production.local
......
web: yarn start
\ No newline at end of file
......@@ -23,18 +23,19 @@ import userProgressRoutes from "./routes/userProgress.routes.js";
dotenv.config();
const app = express();
const corsOptions = {
origin: 'http://localhost:3000',
origin: 'http://localhost:3001',
};
// const corsOptions = {
// origin: 'http://localhost:3000',
// origin: 'http://localhost:3001',
// };
app.use(bodyParser.json({ limit: "30mb", extended: true }));
app.use(bodyParser.urlencoded({ limit: "30mb", extended: true }));
app.use(cors(corsOptions));
// app.use(cors(corsOptions));
app.use(cors());
//end
app.get("/", (req, res) => {
res.json({ message: "Welcome to Server Node" });
res.json({ message: "Welcome to Sign Connect Plus Node Backend" });
});
//implement routes
......
web: uvicorn main:app --reload
\ No newline at end of file
......@@ -8,4 +8,5 @@ SpeechRecognition==3.10.0
tk==0.1.0
requests==2.31.0
pymongo==4.5.0
librosa==0.10.1
\ No newline at end of file
librosa==0.10.1
gunicorn==21.2.0
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment