Skip to content

Experimentation with go anonymous file uploader to s3

Notifications You must be signed in to change notification settings

rahimjad/anon-uploadir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps to get the API go-ing locally:

  1. Ensure you have postgres installed.
  2. Create postgres db, in your CLI select your prefered user and run the following: CREATE DATABASE anon_uploadir.
  3. Ensure you have golang installed, please see the official docs.
  4. 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
  5. 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 only development is supported.
  6. API code will be served on localhost:8080 (unless you change ports in the YAML)

Steps to get the Client running locally:

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.

  1. Make sure that you have Node.js v8.15.1 and npm v5 or above installed.
  2. Run npm install in order to install dependencies and clean the git repo.
  3. Run npm start to get the server going
  4. Navigate to http://localhost:3000 to get going!

About

Experimentation with go anonymous file uploader to s3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published