Stockity is an inventory tracking app where you can add, edit and remove products along with their stocks. This is a submission for Shopify Backend Developer Intern Challenge 2022.
You can run the app using multiple methods.
The following steps in this section are all mandatory!
- Make sure Node.js is installed!
- Install Yarn using
npm install -g yarn
.
- Clone the project to your directory with
git clone https://github.com/CalebLam14/stockity
. - Open a command line (in the
stockity
repo) and go to thestockity-api
directory usingcd stockity-api
. - Run
yarn install
, thenyarn start
after finishing. Feel free to wait for the API to finish setting up. - Open another command line and go to the
stockity-site
directory usingcd stockity-site
. - Run
yarn install
, thenyarn start
after finishing. Feel free to wait for the website to finish setting up. - The API is available at
http://localhost:8000
; and the website is available athttp://localhost:3000
. - To stop each process, use Ctrl/Cmd + C in each command line. If asked, terminate the batch job by responding with
Y
.
- Clone the project to your directory with
git clone https://github.com/CalebLam14/stockity
. - Open a command line (in the
stockity
repo), then runyarn install
to install the necessary dependencies for Yarn to run the app. - Run
yarn start
. This will initialize both the API and website repositories and run both of them concurrently. - Wait for both the API and the website to finish setting up. If all goes well, then the Stockity website should appear in your browser.
- To stop both processes, press Ctrl/Cmd + C, then keep pressing Enter or Ctrl/Cmd + C until the command is finished. If asked, terminate the batch job by responding with
Y
.
- Click on the "+" button on the top left to create a product.
- Click on a product you created to view its details.
- On the top right, you can click on the pencil button to edit and trash bin button to delete it.