https://github.com/kylewelsby/ophelos-code-challenge
Code challenge completed for Ophelos
https://github.com/kylewelsby/ophelos-code-challenge
code-challenge
Last synced: 28 days ago
JSON representation
Code challenge completed for Ophelos
- Host: GitHub
- URL: https://github.com/kylewelsby/ophelos-code-challenge
- Owner: kylewelsby
- License: mit
- Created: 2023-05-22T21:03:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-01T12:08:22.000Z (about 2 years ago)
- Last Synced: 2025-01-20T15:20:32.392Z (about 1 year ago)
- Topics: code-challenge
- Language: TypeScript
- Homepage: https://ophelos-code-challenge.deno.dev/
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Ophelos Code Challenge
Code Challenge completed by [Kyle Welsby](https://github.com/kylewelsby).
## โก๏ธ System Dependencies
This project requires Deno to build and run, follow the
([getting started guide](https://deno.com/manual@v1.33.4/getting_started/installation)).
_At the time of writing the latest stable version of Deno is 1.33.4_
## ๐ฒ Usage
Within the working directory of this project after checking it out to your local
computer.
Run the following commands.
```
deno task start
```
This will download the dependencies and start the webserver on port 8000
Visit [http://localhost:8000](http://localhost:8000)
## ๐งช Testing
Before running tests, you need to provision a PostgreSQL server and update
`.env` with the postgres URI.
```
# .env
DATABASE_URL=postgres://{user}:{password}@rogue.db.elephantsql.com/{database}
```
Run the unit tests with the following commands.
```
deno test -A
```
_Tests will create and destroy the truncate the database on every test run_
##ย ๐จ Linting
Deno comes with linting and formatters built in, you can run them with the
following commands
```
deno fmt
deno lint
```
## ๐ License
MIT: https://kylewelsby.mit-license.org