Skip to content

Built Dockerized Wiki app in RESTful API with Go, React.js, Docker

Notifications You must be signed in to change notification settings

Sungmin-Kim-0508/Wiki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wiki App

Build Status

Backend Part (Part 1)

Run the application

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/

Build the application

# Create .exe file
go build -o main.exe

Test the application

go test

Frontend Part (Part 2)

Run the project

# 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

Test the project

npm run test

Build the project for the production

npm run build # or
yarn run build

How to dockerize the wiki app (Part 3)

docker-compose build
docker-compose up

About

Built Dockerized Wiki app in RESTful API with Go, React.js, Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published