- Ensure you have postgres installed.
- Create postgres db, in your CLI select your prefered user and run the following:
CREATE DATABASE anon_uploadir
. - Ensure you have golang installed, please see the official docs.
- You will need a YAML file to load configuration, please look at the example config file. This file must be located in
config/{ENV}.yml
- Run the API using
cd api && go run main.go
- You can also build the bin if preferred using
go build main.go
- This will create an
api
bin file which you can execute - You may also supply
ENV
variable to define how to boot the app. Currently onlydevelopment
is supported.
- You can also build the bin if preferred using
- API code will be served on
localhost:8080
(unless you change ports in the YAML)
I chose to use create-react-app for the client. Mostly because it is fairly lightweight and easy to get going. Feel free to look at the client README for more info.
- Make sure that you have Node.js v8.15.1 and npm v5 or above installed.
- Run
npm install
in order to install dependencies and clean the git repo. - Run
npm start
to get the server going - Navigate to
http://localhost:3000
to get going!