8000 GitHub - thought-monke/yata-api
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

thought-monke/yata-api

Repository files navigation

Yet Another To-Do App (YATA)

Yet another to-do app created with JavaScript, specifically NestJS.

Getting Started

Create a .env file at the root of the project. The file should contain:

DATABASE_URL="postgresql://postgres:<your_password>@localhost:5432/yata?schema=public"

JWT_SECRET=<secret>
JWT_TOKEN_AUDIENCE=localhost:4200
JWT_TOKEN_ISSUER=localhost:3000
JWT_ACCESS_TOKEN_TTL=<ttl_in_seconds>
JWT_REFRESH_TOKEN_TTL=<ttl_in_seconds>

PORT=3000

REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=<password>
REDIS_USER=default

# These are required if you plan to use Auth0
ISSUER_BASE_URL=<add_your_auth0_domain_here>
AUDIENCE=<add_your_auth0_api_url_here>
CLIENT_ORIGIN_URL=http://localhost:4200

# Required for Google login
GOOGLE_CLIENT_ID=<client_id>
GOOGLE_CLIENT_SECRET=<client_secret>

Using Docker

If Docker is your preference, then ensure that Docker is running on your machine. Open a terminal at the root of the project and run the following to create the Postgres database:

docker compose up redis db --detach

Without Docker

Install the following:

Create and seed the database.

npm run db:init

Run the Application

Once the installation process is complete you can start the server:

npm run start

Apply Migration

npx prisma migrate dev

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0