https://github.com/nkilm/riddles-api
An API which returns a riddle each time a call is made.
https://github.com/nkilm/riddles-api
express rest-api vercel
Last synced: 3 months ago
JSON representation
An API which returns a riddle each time a call is made.
- Host: GitHub
- URL: https://github.com/nkilm/riddles-api
- Owner: nkilm
- License: mit
- Created: 2022-05-01T13:31:39.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-05T17:27:04.000Z (about 3 years ago)
- Last Synced: 2023-05-02T15:30:16.745Z (almost 3 years ago)
- Topics: express, rest-api, vercel
- Language: CSS
- Homepage: https://riddles-api.vercel.app
- Size: 95.7 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Riddles REST API
>API - [https://riddles-api.vercel.app/random](https://riddles-api.vercel.app/random)
## Development - How to setup locally?
- **With Docker** - Easy way
```bash
docker build -t riddles-api .
```
```bash
docker run -it -p 9090:9090 riddles-api
```
- **Without Docker**
1. Check if `node` is installed
```bash
node -v
# if this throws error, then install nodejs
# link - https://nodejs.org/en/download/
```
2. After cloning the repository, `cd` to project folder
```bash
npm install
```
3. After all packages are installed, start the server
```bash
npm start
# or
nodemon server.js
```
## Usage
