Failed to run
Opened this issue · 4 comments
Please how do I install the compilers on visual studio code I tried npm install but it still failed
Hi, I was able to perform these and seed , create tables etc.
npx dotenv sequelize db:migrate:undo:all npx dotenv sequelize db:migrate npx dotenv sequelize db:seed:all
But npm start isn't working.
For the client end, most of the files are not accessible because of the relative path shows incorrect.
If possible , can you please share the steps and sample ENV file parameters and configuration.
Thanks for sharing this amazing project.
I was able to run it locally, following are the changes which I had to do.
Client/package.json
set scripts in "start" to this:
"start": "node_modules/.bin/react-scripts start",
In Server Directory Create file -> .env
and define following in this file:
NODE_ENV="development"
PORT='8080'
DB_USERNAME=''
DB_PASSWORD=''
DB_DATABASE=''
DB_HOST=''
DATABASE_URL=''
JWT_SECRET=''
JWT_EXPIRATION_TIME=''
JWT_EXPIRES_IN=''
Server/app.js
update the relative paths as:
const userRouter = require("./db/routes/users");
const taskRouter = require("./db/routes/tasks");
const projectRouter = require("./db/routes/projects");
const teamRouter = require("./db/routes/teams");
const tasklistRouter = require("./db/routes/tasklists");
const commentRouter = require("./db/routes/comments");
const userteamRouter = require("./db/routes/userteams");
similarly in all the files under :
server/db/routes: change the relative location for DB paths, which would look something like below after the changes.
const { UserTeam, Team, User } = require("../../db/models");
const { User, Team, UserTeam } = require("../../db/models");
const { Team, UserTeam, User, Project, UserProject } = require("../../db/models");
const { Task, Comment, Project, User } = require("../../db/models");
const comment = require("../../db/models/comment");
const { TaskList, Task } = require("../../db/models");
require("../../db/models");
const { Comment } = require("../../db/models");
const jwt = require("jsonwebtoken");
const { jwtConfig } = require("../../../config");
const { User } = require("../../../db/models");
Hope this helps.
to run server use:
"nodemon -r dotenv/config ./bin/www",
and follow the read me in project directory.
Can you help me