It looks like to get this running:
- Clone the repository
- Run
npm install in the root directory
- Run
npm start to start the application in production mode
- Run
npm run dev to start the application in development mode
It requires Postgres running, and the environment variable DATABASE_URL to be defined. If you need to run an instance of Postgres for debugging:
$ docker run -d --name some-postgres -e POSTGRES_PASSWORD=dbpasswordhere -p 5432:5432 -d postgres
I noticed you need an .env file set for dev mode—do you have an example of what needs to be set in there?
If I set:
DATABASE_URL="postgresql://postgres:dbpasswordhere@127.0.0.1:5432/postgres"
Then when I run npm run dev (or prod), and access 127.0.0.1:3000, I get Cannot GET /.
It looks like to get this running:
npm installin the root directorynpm startto start the application inproductionmodenpm run devto start the application indevelopmentmodeIt requires Postgres running, and the environment variable
DATABASE_URLto be defined. If you need to run an instance of Postgres for debugging:I noticed you need an
.envfile set for dev mode—do you have an example of what needs to be set in there?If I set:
Then when I run
npm run dev(or prod), and access127.0.0.1:3000, I getCannot GET /.