https://github.com/henrhie/backend-solution
https://github.com/henrhie/backend-solution
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/henrhie/backend-solution
- Owner: henrhie
- Created: 2022-10-12T00:09:30.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-13T16:52:28.000Z (over 2 years ago)
- Last Synced: 2025-01-10T00:14:43.221Z (5 months ago)
- Language: JavaScript
- Size: 96.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Backend solution
contains the solution for the take-home assignment
## Run Locally
Clone the project
```bash
git clone https://github.com/henrhie/backend-solution.git
```Go to the project directory
```bash
cd backend-solution
```Install dependencies
```bash
npm install
```Configure Prisma - create a .env file with `DATABASE_URL` pointing to PostgreSQL instance.
Also add `OPEN_WEATHER_KEY` API key to your .env file.
Run the following after configuring.```bash
npx prisma migrate dev --name init
```Start the server
```bash
npm run start:dev
```Run tests
```bash
npm run test
```