This is a personal project based in nodeJS to url shortener named tinu.be
- Node ~10.16.
- Yarn or npm ~6.11
By the first rename the file .env-sample
to .env
and fill with all necessary info:
# Environment variables
API_PORT=5000
CORS_ORIGIN=*
DATABASE_HOST=mongodb+srv://<user>:<pass>@<host>.mongodb.net/<database>?retryWrites=true&w=majority
BASE_URL=http://localhost:5000
We are using Yarn to install dependencies and build, so open the terminal and run:
$ yarn install
then to run dev env
$ yarn dev