Open kempy007 opened 2 days ago
@ccarella can you help us pls thx
Hi @kempy007 the README Is a little out of date, and we actually do not use Docker for development - only deployment and CI. Unfortunately we do not have the capacity to ensure that it is easy to run the application locally, but i'd like to offer some general steps that should work:
1) You need a local postgres db running with a "charmverse" database. Also install node.js if you haven't already. I'm using node v20.11.1 and npm v10.
2) In this repo, copy the .env.test.local.example file to .env.local and rename "charmversetest" to "charmverse" in the DATABASE_URL. Then run npm ci
and then run dotenv -e .env.local -- npm run prisma:migrate
to set up the db. You should be able to run npm start
. to get the Next.js server started and at least see a login page. To get the app working, you must also have the permissions api running:
3) Clone a copy of https://github.com/charmverse/permissions.charmverse.io. I just added you as a contributor so you should be able to see it. Create a .env.local file similar to the first one, and run npm start
.
Following Readme on main branch fails to build.
I expected the build steps to succeed and for the App to start.
I started a container with 'docker run -it node:20.18.0-slim /bin/bash' and executed the steps from readme.
cmd history
Shell Output