Open nasirhm opened 1 year ago
Detailed steps to setup local development environment for new people (: (If you're new to CS, this may be scary at first, so here are some detailed steps that tell you exactly what to do in order to get started with contributing the AEC website)
1. Fork the repo.
website-dev
repo, which, when merges are made, will automatically make changes to this repo here.2. Clone the forked repo.
git
installed. git clone <YOUR REPO'S LINK>
git clone https://github.com/Applied-Engineering-FC/website-dev/
.git
. This contains all the information that GitHub needs when you will eventually do things like "commit" and "push" your changes. But that is beyond setting up the local development environment.3. Installing NodeJS
cd website-dev
. Then, run npm install
. npm
knows what plugins install by reading package.json
. It also installs their dependencies.!!! Windows-based operating systems: I would suggest installing and using WSL or spinning up a VM. Basically, I don't think web-development in Window-based OSs is beginner-friendly nor efficient.
npm run dev
npm run dev
, you'll see Local: http://localhost:5175/
, or something similar to that. Copy and paste that into your browser, and you'll be able to see the website in your browser!Feel free to ask any questions under this issue
Configure the website locally to setup development environment.
Steps:
npm install
(Installs all the plugins that the website requires.)npm run preview