Author: Jun Zhang <jun.1.zhang@aalto.fi>
In this project, a web program that lists and displacy places in Helsinki is implemented with React as frontend and Node.js as backend (use express framework). To develop this program, I use the Jason Watmore's work as a basic skeleton. For testing, I use JEST.
Clone this repo :
Install dependencies for backend :
-
cd server
-
yarn install
Start the backend in production mode :
yarn start
Notice that some values are passed as environment variables, which are saved in a .env file and I do not upload this file. So in order to take use run the backend, you need to create an .env file by yourself and define the values of PLACES_URL and PORT there. We use this URL and port 4000 by default.
Then for the frontend :
-
cd client
-
yarn install
-
yarn start
client
frontendserver
backend
This web app is now deployed to Azure. You can try it out by click here!