Skip to content

kolioOtSofia/word-counter

Repository files navigation

Word Counter

An awesome word counter! Alter digga!

Setup

  • Copy .env.example to .env and adjust the values as needed.

    Note: if you wish to build for production you must also create the file .env.production, see here for more information.

  • Make sure to install the dependencies:

    yarn
  • Also make sure that you have docker and docker-compose set up on your system.

Development Server

Start the development server on http://localhost:3000

docker-compose up -d
yarn prisma db push
yarn dev

Schema / Database

Generate

yarn prisma generate

Running Migrations

yarn prisma migrate

Push Schema to Database

yarn prisma db push

Build for Production

Make sure that you have set up the file ./.env.production (it should be exactly the same as .env with the exception of the db host, which should be the name of the postgres service found in ./docker-compose.yml.

Then build and run the application for production:

docker-compose --profile production up --build --force-recreate --no-deps -d

It should now be running on http://localhost:8080

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published