https://github.com/thuyencode/mini-message-board-the-odin-project
Project: Mini Message Board | The Odin Project
https://github.com/thuyencode/mini-message-board-the-odin-project
express nodejs theodinproject
Last synced: 3 months ago
JSON representation
Project: Mini Message Board | The Odin Project
- Host: GitHub
- URL: https://github.com/thuyencode/mini-message-board-the-odin-project
- Owner: thuyencode
- Created: 2024-08-01T02:48:41.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-03T10:58:29.000Z (almost 2 years ago)
- Last Synced: 2026-01-03T16:28:38.635Z (6 months ago)
- Topics: express, nodejs, theodinproject
- Language: TypeScript
- Homepage:
- Size: 226 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project: Mini Message Board
[More detail information here](https://www.theodinproject.com/lessons/node-path-nodejs-mini-message-board) and [here](https://www.theodinproject.com/lessons/nodejs-using-postgresql#assignment).
https://github.com/user-attachments/assets/8d0ddf1f-ccb9-4962-bbea-431a28f9b675
| Tech stack |
| :--------------------------------------------------------------------------------------------------------------------------------------------------: |
| [](https://github.com/LelouchFR/skill-icons) |
...and **[EJS](https://ejs.co)**.
## Getting started
First you need to set up PostgreSQL, using Docker (recommended) or download it (soy Windows users). And then change these values to [`.env.production`](./.env.production) or `.env.development.local`. For example:
```text
PGHOST=localhost
PGPORT=5432
PGUSER=example
PGPASSWORD=example
PGDATABASE=example
```
Start your Postgres first. Then you need to re-create the needed table by using one of these following commands:
```bash
# Make sure you've created .env.development.local and changed the defaults
npm run populate-db:dev
# Make sure you've changed the defaults inside .env.production
npm run populate-db:prod
```
The [`./src`](./src/) folder contains the source code. The `./dist` folder contains the bundled source code and it'll be created when you run this command:
```bash
npm run build
```
Use the following command to run and watch for any changes in the source code:
```bash
npm run dev
```
And use the following command to run the bundled code:
```bash
npm run start
```
For linting:
```bash
npm run lint
```