Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skn0tt/orgu
https://github.com/skn0tt/orgu
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/skn0tt/orgu
- Owner: Skn0tt
- Created: 2021-11-04T09:47:28.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T17:54:44.000Z (11 months ago)
- Last Synced: 2024-10-06T04:01:54.580Z (about 1 month ago)
- Language: TypeScript
- Homepage: https://orgu.onrender.com/
- Size: 1.07 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a [Blitz.js](https://github.com/blitz-js/blitz) app.
# Orgu
## Setup
### Environment Variables
Create a `.env.local` file in the root directory with these environment variables:
```
DATABASE_URL="postgresql://postgres:1234@localhost:6432/orgu"
POSTGRES_USER=postgres
POSTGRES_PASSWORD=1234
POSTGRES_DB=orgu
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
BASE_URL=http://localhost:3000
BLITZ_PUBLIC_AUTHENTICATION_REQUIRED=true
```Create a `.env.test.local` file in the root directory with these environment variables:
```
DATABASE_URL="postgresql://postgres:1234@localhost:6433/orgu"
POSTGRES_USER=postgres
POSTGRES_PASSWORD=1234
POSTGRES_DB=orgu
```### Database
Make sure docker is running. Run:
```
npm run predev
npm run db:reset
```## Start
Run your app in the development mode.
```
blitz dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Local Docker Postgres Database
### Connect
```
sudo docker exec -it orgu_db_1 psql -U postgres
```### Execute Script
```
cat data.sql | sudo docker exec -i orgu_db_1 psql -U postgres orgu
```