Skip to content

link00000000/cmpct

Repository files navigation

cmpct 🗜

Heroku

A URL shrtnr

Requirements ✨

  • yarn
  • redis
  • MongoDB

It is assumed there is already a redis server running on localhost

Development 💻

# Install dependencies
yarn
cd client && yarn && cd ..

# Start development servers
yarn dev

Production 📦

# Install dependencies
yarn
cd client && yarn && cd ..

# Build and start production server
yarn start

Docker 🐳

docker-compose up

Useful Scripts ⚙

  • yarn lint - Lint your code and automatically apply formatting fixes
  • yarn dev - Start both development servers
  • yarn build - Build project for production. Compiled code in build/ and client/build/
  • yarn redis:start - Start redis server using Docker
  • yarn redis:attach - Attach to current running instance of redis
  • yarn mongo:start - Start mongo server using Docker
  • yarn mongo:attach - Attach to current running instance of mongo
  • yarn clean - Remove temporary files