is-it-ayush / athing

athing. is a platform that provides a safe, secure and an anonymous environment for everyone who want's to journal, rant, vent or help other's in their lives.
https://athing.isitayush.dev/
MIT License
8 stars 2 forks source link
fullstack mental-health nextjs react t3-stack trpc typescript

athing.

Visit: athing.isitayush.dev

image

athing. is a platform that provides a safe, secure and an anonymous environment for everyone who want's to journal, rant, vent or help other's in their lives.

goals.

contributing.

locally running this.

  1. run git clone https://github.com/is-it-ayush/athing && cd athing.
  2. copy .env.example to a new file called .env and fill in the values.
  3. run pnpm install to install the dependencies.
  4. run pnpm dev to start the development server.

database setup.

  1. run docker run --name athing-postgres -e POSTGRES_PASSWORD=athing -e POSTGRES_USER=athing -e POSTGRES_DB=athing -p 5432:5432 -d postgres:latest.
  2. put postgresql://athing:athing@localhost:5432/athing in the DATABASE_URL field in the .env file.
  3. run pnpm db:push to push the migrations to the database.

command reference.

command description
pnpm build builds the next.js app.
pnpm clean removes all the node_modules and .next folders.
pnpm db:gen generates the prisma client.
pnpm db:migrate runs the prisma migrations.
pnpm db:push pushes the prisma schema to the database.
pnpm db:reset resets the prisma migrations.
pnpm dev starts the development server.
pnpm format checks the code for formatting issues.
pnpm format:fix fixes the formatting issues.
pnpm lint checks the code for linting issues.
pnpm lint:fix fixes the linting issues.
pnpm start starts the production server.
pnpm typecheck checks the code for type errors.
pnpm test runs the tests.