An open-source URL shortener by Diky Hadna. Check the demo here at go.hadna.space.
- Clone this repository
$ git clone /~https://github.com/dkhd/go-url-shortener.git
- Install all the dependencies
$ npm install
-
Set your secret key (read the documentation below)
-
Run the project
$ npm start
-
Register your FaunaDB account here https://fauna.com/
-
Follow this documentation to create your own secret key https://docs.fauna.com/fauna/current/security/keys
-
Register your Auth0 account here https://auth0.com/
-
Follow this documentation to create your own secret key https://auth0.com/docs/quickstart/spa/react/01-login#configure-auth0
-
Create
.env
file in your root project directory -
Fill with these environment variables:
REACT_APP_AUTH0_URL=<AUTH0_URL>
REACT_APP_CLIENT_ID=<AUTH0_CLIENT_ID>
REACT_APP_FAUNADB_KEY=<FAUNADB_SECRET_KEY>
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.