Running from code
You can also run LinkStash from the code.
Pre-requisites
- git
- nvm
- node
- mysql database
Setting up the Development Environment
- Clone the repository
git clone http://github.linkstash/ - Set Up Environment Configurations:
.envcan be created by copying the.env.examplefiles in their respective folders.- backend :
./apps/linkstash-backend/.env- nextjs supports having environment specific env file e.g
env.localfor local development.
- nextjs supports having environment specific env file e.g
- frontend :
./apps/linkstash-frontened/.env
- Start the backend
- Make sure you are in the backend directory (assuming you are in repo root)
cd apps/linkstash-backend - Initialize databse
npm run migrate - Start the application
npm start
- Make sure you are in the backend directory (assuming you are in repo root)
- Start the frontend
- Make sure you are in the frontend directory (assuming you are in repo root)
cd apps/linkstash-frontend - Start the application
npm start
- Make sure you are in the frontend directory (assuming you are in repo root)