An awesome word counter! Alter digga!
-
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
anddocker-compose
set up on your system.
Start the development server on http://localhost:3000
docker-compose up -d
yarn prisma db push
yarn dev
yarn prisma generate
yarn prisma migrate
yarn prisma db push
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