Skip to content

First-time setup instructions #1

@geerlingguy

Description

@geerlingguy

It looks like to get this running:

  1. Clone the repository
  2. Run npm install in the root directory
  3. Run npm start to start the application in production mode
  4. 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 /.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions