cooki-e-commerce
is a web app built using the power of javascript and web technologies such as react
, node
and expressJS
to sell a variety of cookies for an imaginary business with the name of "Cookie Stop".
In case you want to play around with the project on your own machine, you would have to:
- Install the latest version of
node.js
- Install the latest version of
mongodb
- Open up a terminal window and navigate to the directory where the project is stored
Once all that is taken care of, follow the steps below to set up the project and have it running.
- In your terminal, run
npm install
to install all of the project's dependencies. This is needed so it would have all the files it'll need to work, run properly and look fancy. - If desired, edit the following files:
- server.js: In the call to the function
listen
, change the port number (currently 3000) to a desired port number. - webpack.config.js: If you want to change the entry points where webpack will begin checking for dependencies, add or modify the path to the scripts at entry
- stylesheets: There are various stylesheets found in the src/assets/styles directory. Each stylesheet is named after the component of the application that it is styling. To modify general style rules, make adjustments to the
globals
stylesheet.
- server.js: In the call to the function
- Once all desired edits are compeleted, on your terminal, run
npm run-script build
to build the webpack bundle used by the project. - Start up the server by running
npm start
ornode server
using your terminal. - View the application by navigating to
http://localhost:[port number]
. Whereport number
is the value you passed to listen in server.js. Alternatively, it is 3000 by default.
- Source code from branches other than
master
still need to be cleaned up. - At the making of this project, the current version of Node.js is 8.11.3
- Big thanks to the creator of the
KR Bite Me font
. - Big thanks to the wonderful people at unsplash for their awesome images!