Skip to content

afrianjunior/flip-frontend

Repository files navigation

Before run this application

Please setup server nginx as backend rest-ful

$ cd server
$ docker build -t flip-server-test:latest .
$ docker run -p 9000:80 flip-server-test:latest

Now, the server run on port 9000 or http://localhost:9000

Copy-paste the .env file

$ cp .env.example .env

Edit the BASE_URL to your server

Install packages

$ yarn

Run

$ yarn dev

Server run on port 3000

build

$ yarn build

Run Production

$ yarn start

If you want to run with Docker

$ docker build -t flip-frontend:latest .
$ docker run -p 3000:3000 flip-frontend:latest