Skip to content

ermesonsampaio/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Url Shortener

License

Installation

git clone https://github.com/ermesonsampaio/url-shortener.git

cd url-shortener

# Open Project in Your Code Editor
# In my case, Visual Studio Code
code .

# Create ormconfig.json
touch ormconfig.json

# Install dependencies
# npm: npm install
yarn

# Run project
yarn dev

ormconfig.json

An example of the ormconfig.json file

  {
    "type": "mysql",
    "host": "localhost",
    "port": 3306,
    "username": "root",
    "password": "",
    "database": "url-shortener",
    "synchronize": true,
    "logging": false,
    "entities": [
      "src/database/models/*.ts"
    ],
    "migrations": [
      "src/database/migrations/*.ts"
    ]
  }

Using insomnia to test this API

  1. Open Preferences > Data > Import Data > From File
  2. Then navigate to the project folder and select the file inside the insomnia folder.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published