1.8 KiB
1.8 KiB
PC Rebels
To do (Add to this and use ~~content~~ to show its done)
Add ReadmeSet Up init filesMake barebones index.html file
Set Up:
- Download & install: vscode or any editor of your choice
- Download & install: nodejs this is needed to host the website
- Download & install: git this is so we can use git from the commandline
- Once this is done we have to init the local repo
- In vscode use Ctrl+~ to open up a terminal and go to a directory where you want the repo to live: type in
git clone https://github.com/rayaman/pcrebels.gitNote: This creates a folder named after the repo - Next once that is done run
npm installThis will install all the node modules that we need to run the server - And with that everything should be stable and runnable
- You will need to create a file called dev.env inside of the config folder. This is where we put private variables that we dont want being committed. The .gitignore file makes sure that we dont commit this file
- Now let's test to see if things worked
- There are 2 ways to run the code
npm startThis is how the webhost will run our codenpm testThis uses nodemon which reloads our code automatically when we make any changes and makes dev work eaiser. (Usenpm testwhen you can)
- Once you got the code running go to http://localhost:3000/ and see if something comes up.