README.md 882 Bytes
Newer Older
1
2
# Prog2053 - Project

Martin Wighus Holtmon's avatar
Martin Wighus Holtmon committed
3
## How to setup project
Martin Wighus Holtmon's avatar
Martin Wighus Holtmon committed
4
5
1. Clone the project
2. Open into the project directory that you want to work on, e.g.: projectFirstPart, projectSecondPart etc...
Martin Wighus Holtmon's avatar
Martin Wighus Holtmon committed
6
3. Open a terminal window at that directory: 
Martin Wighus Holtmon's avatar
Martin Wighus Holtmon committed
7
   - Install modules: `npn install`
8
   - Build the website: `npm run build:w`
Martin Wighus Holtmon's avatar
Martin Wighus Holtmon committed
9
     - This command essentially builds the website every thime you change something (:w = watch)
Martin Wighus Holtmon's avatar
Martin Wighus Holtmon committed
10
     - If you modify the _webpack.config.js_ file, you need to cancel and run this command again to generate the bundle.
Martin Wighus Holtmon's avatar
Martin Wighus Holtmon committed
11
12
   - Run the webserver: `node webServer.js`
   - How to build and run the website: 
Martin Wighus Holtmon's avatar
Martin Wighus Holtmon committed
13
     - On linux/mac you could run this one-liner to build and run the website: `node webServer.js && npn run build:w`
Martin Wighus Holtmon's avatar
Martin Wighus Holtmon committed
14
     - On Windows, the simplest way is to open two terminal windows for each command. (You could also run the start.bat file in each of the project directories)