Skip to content

thuyencode/members-only-the-odin-project

Repository files navigation

Project: Members Only

More details information here.

Tech stacks:

Frontend Backend
front-end's tech stack
and Tanstack Router, Ky, Valibot
back-end's tech stack
and node-postgres, Valibot

Getting started

1. Setting-up the database

Your need to install PostgreSQL first using your OS's package manager, an installer file or using Docker (recommended).

Configure the host address, port number, username, password, a database according to .env.example.

Copy the file .env.example into .env.production.local and .env.development.local and edit the env variables' values.

Then use one of these commands to re-populate the database:

# If you're in development mode
npm run populate-db:dev

# If you're in production mode
npm run populate-db:prod

2. Running the project

First, install all the dependencies:

npm i

To run the dev server:

npm run dev

To export and run the production build:

npm run build
npm run start

About

Project: Members Only | The Odin Project

Topics

Resources

Stars

Watchers

Forks

Languages