This project serves as a proxy to communicate between your client application and the Unsplash API. By using this proxy you won't have to expose your Unsplash APP_KEY
and SECRET_KEY
on your client.
In the project directory, you can run:
Runs the app that's found on the build directory.
By default the app will use http://localhost:8000.
If you want to change the port you can specify it on your .env file.
Runs the app in the development mode and restarts the server everytime something in the src directory changes.
By default the app will use http://localhost:8000.
If you want to change the port you can specify it on your .env
file.
Cleans up the build directory and compiles the application.
Compiles your application with TypeScript and outputs the result to the build directory.
You can specify your API keys and environment variables on a .env
file that's located on the root of your application.
Example:
PORT=8000
UNSPLASH_APP_KEY=SOME_APP_KEY
UNSPLASH_SECRET_KEY=SOME_SECRET_KEY
CLIENT_URL=http://localhost:3000