Skip to content

TitoDKM/randomjokes-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RandomJokes API (NodeJS)

Simple API to fetch random joke

Requeriments

  • Node.js version >= 10.3.0
  • MySQL Server

MySQL Server installation

Here you can find some installation guides depending on your OS: MySQL Installation Guide

You can find the database used in this project(and their updates) in sqls folder (includes 400 jokes examples for testing)

Project installation guide

Install dependencies

  • npm install

Set your settings

  • Change .env.example to .env
  • Change default settings to match your installation

Run locally

  • npm run dev

Project structure

├── package.json
|
├── src # Source code folder
    ├── index.ts # Main file with dependencies references and project info
    ├── db.ts # Database (MySQL) connection
    ├── types.d.ts # Declaration file for types and interfaces
    ├── routes
        ├── joke.ts # Routes for /api/joke
├── sqls # Folder with queries for create a database from scratch

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors