https://github.com/dentednerd/nc-news-sql
https://github.com/dentednerd/nc-news-sql
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dentednerd/nc-news-sql
- Owner: dentednerd
- Created: 2022-11-03T11:38:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-04T13:08:07.000Z (over 2 years ago)
- Last Synced: 2025-02-07T00:31:58.831Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://nc-news-sql.vercel.app
- Size: 475 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NC News SQL API
A RESTful API with a PostgreSQL database.
[https://nc-news-finale.fly.dev/api](https://nc-news-finale.fly.dev/api)
## Requirements
- Node v18.17.1: [download](https://nodejs.org/en/)
- PostgreSQL v13.3: [download](https://www.postgresql.org/download/)
- Docker 24.0.6: [download](https://www.docker.com/)
## Installation
```sh
git clone https://github.com/dentednerd/nc-news-sql.git
cd nc-news-sql
npm run docker:build
# in separate terminal:
npm run docker:seed
```
Dev environment will be available on [localhost:9090](http://localhost:9090).
## Testing
```sh
npm t # jest --verbose
```
## Deployment
```sh
# first time:
flyctl launch
npm run deploy
npm run seed:prod
# subsequently:
npm run deploy
```