-
Notifications
You must be signed in to change notification settings - Fork 0
2 Website
The NWA website is build with Node.js and split into two servers: frontend and backend.
The frontend is build using React.js and styled with reactstrap. The backend is build with Express.js.
The two servers connect to each other using API calls.
Both servers are hosted on Heroku.
The source code regarding both the frontend and backend can be found in the respective subfolders inside site.
To run the website in a local enviroment with a connection established between the frontend and backend, first donwload node.js.
Then proceed to run the command npm install inside both subfolders from a command prompt within site. This should be done after every pull from GitHub. make sure to run the command npm run-script build in the frontend directory as well. New packages can be added using the npm install command.
The server is now ready. Run the command npm run in the site directory. The website should open on localhost at port 3001. To change the port or configure local settings regarding email capabilities, create a .env file inside the backend directory as described in Backend.