Skip to main content
Version: Next

Running from code

You can also run LinkStash from the code.

Pre-requisites

  • git
  • nvm
  • node
  • mysql database

Setting up the Development Environment

  1. Clone the repository
    git clone http://github.linkstash/
  2. Set Up Environment Configurations:
    • .env can be created by copying the .env.example files in their respective folders.
    • backend : ./apps/linkstash-backend/.env
      • nextjs supports having environment specific env file e.g env.local for local development.
    • frontend : ./apps/linkstash-frontened/.env
  3. Start the backend
    1. Make sure you are in the backend directory (assuming you are in repo root)
      cd apps/linkstash-backend
    2. Initialize databse
      npm run migrate
    3. Start the application
      npm start
  4. Start the frontend
    1. Make sure you are in the frontend directory (assuming you are in repo root)
      cd apps/linkstash-frontend
    2. Start the application
      npm start