Skip to content

Virtual-felix/phoenix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phoenix

All you can see for now is ash and light distorted by the heat.

Development

API

cd api
cargo build

or (with docker)

docker build -t ph-api:dev .

then to run

cargo run

or (with docker)

docker run -it --init --rm \
-p 3001:3001 \
-e ROCKET_PORT=3001 -e ROCKET_ADDRESS=0.0.0.0 \
-v ${PWD}/src:/usr/src/api/src \
ph-api:dev

APP

cd app
npm install

or (with docker)

docker build -t ph-app:dev .

then to run

npm start

or (with docker)

docker run -it --rm \
-v ${PWD}:/app \
-p 3000:3000 \
-e CHOKIDAR_USEPOLLING=true \
ph-app:dev

Docker compose (recommanded)

You can also build and run everything at once with docker compose

docker-compose build
docker-compose up

Production

In production, using docker compose is highly recommanded.

docker-compose -f docker-compose.prod.yml build
docker-compose -f docker-compose.prod.yml up

The app will be accessible on port 80.

More option will be available later to be able to tweak every possible thing and fully respect the twelve factors.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published