2022-07-19 23:21:37 +05:30
# Okiba
2022-12-04 22:11:08 +05:30
A simple and minimal pastebin written in Node.JS.
2022-07-19 23:21:37 +05:30
## Usage
2022-12-04 22:11:08 +05:30
2022-07-19 23:21:37 +05:30
Before starting the server, we populate the database by creating a table for endpoints and providing the words to be used. The server will be populated from `words.txt` file from project root.
2022-12-04 22:11:08 +05:30
https://github.com/dwyl/english-words/blob/master/words_alpha.txt
2022-07-19 23:21:37 +05:30
### Environment Variables
2022-12-04 22:11:08 +05:30
Create a `.env` file at the project root and add the following variables according to the database.
2022-07-19 23:21:37 +05:30
```shell
2022-12-04 22:11:08 +05:30
PORT = 8080
2022-07-19 23:21:37 +05:30
PGUSER = alok-pg
PGHOST = localhost
PGDATABASE = okiba
PGPORT = 5432
2022-12-04 22:11:08 +05:30
PGPASSWORD = postgres_user_password
2022-07-19 23:21:37 +05:30
```
### Start scripts
2022-12-04 22:11:08 +05:30
2022-07-19 23:21:37 +05:30
```shell
// Development Server
$ pnpm run dev
2022-12-04 22:11:08 +05:30
// Build
$ pnpm build
2022-07-19 23:21:37 +05:30
// Production
$ pnpm start
2022-12-04 22:11:08 +05:30
```