Backend for lotterycamp project.
- docker [or]
- node >= 12.7.0
- npm >= 6.10.0
Note: can use nvm to manage node version
Uses react-app-env to manage config.
# copy dev config
cp env.example development.env
# copy prod config
cp env.example production.env
# update env variables as per local or prod then run:
npm install
npm start (for local development)
app will be available at: localhost:3000
# for production
# add vhost in /etc/hosts
127.0.0.1 backend.lotterycamp.com # prod
127.0.0.1 backend.lotterycamp.local # local dev
# in docker-compose.yml update environment variables in nginx server container
environments:
- VIRTUAL_HOST=backend.lotterycamp.com
- LETSENCRYPT_HOST=backend.lotterycamp.com
# run app
npm run build
docker-compose up -d
app will be available at: https://backend.lotterycamp.com
# stop and remove containers
docker-compose down
# if necessary, rebuild app
docker-compose build app
- for rebranding, replace all variation of lotterycamp
- replace logo|favicon (src/assets/images|public/index.js)
- replace logo link in scss/**
If you want to contribute, just fork the repository and play around, create issues and submit the pull request. Help is always welcomed.
If you discover any security related issues, please email hello@sudiplimbu.com instead of using the issue tracker.
The scripts and documentation in this project are released under the MIT License
Sudip Limbu