export GO_ENV=development
# Run the application
go run main.go
# APIs
# Step 1: Check if articles are empty
curl http://localhost:9090/articles/
# Step 2: Single article is empty
curl http://localhost:9090/articles/rest_api
# Step 3: Add Article
curl -X PUT http://localhost:9090/articles/wiki -d 'A wiki is a knowledge base website'
# Step 4: Update Article
curl -X PUT http://localhost:9090/articles/wiki -d 'A wiki is the best website'
# Step 5: Get a article named 'wiki'
curl http://localhost:9090/articles/wiki
# Step 6: Get article list
curl http://localhost:9090/articles/
# Create .exe file
go build -o main.exe
go test
# Make sure the server is running
## Development Environment
# Set environment varibles
export REACT_APP_DEV_ENV=development
npm run start # or
yarn run start
### Production Environment
npm run start # or
yarn run start
npm run test
npm run build # or
yarn run build
docker-compose build
docker-compose up