This is the final project of the National Taiwan University Programming User Interface course in the second semester of 2022.
- download this source code from GitHub. You can do that via
git cloneor download with zip file. - open 2 command line tools / terminals, both changed directory to this project directory, one for frontend and the other for backend.
- choose one of the command line, and change directory to
frontend/ - use
yarn installto download necessary packages. (Yarn is a package manager. You can refer to yarn's offical website to install it.) yarn startto start execution
This is all the command you need
cd frontend
yarn install
yarn start- choose the other command line, and change directory to
backend/ - we use mongo DB as our database, so you will need to either download a local mongo database or register Mongo DB Atlas online service. You will need to create a new database called
lost_found. - create a file called
.env, designate the link to database withMONGO_URLand server port withPORTin the file. Example.envfile
# if you uses local mongo database
MONGO_URL=mongodb://localhost:27017/lost_found
PORT=4000
# if you uses mongo db Atlas
MONGO_URL=mongodb+srv://<username>:<password>@<clusterName>.mongodb.net/lost_found?retryWrites=true&w=majority
PORT=4000
- install packages and run with npm (npm is the package manager for NodeJS, please refer to NodeJS offical websit to install Node and npm)
This is all the command you need. Please note that it will execute correctly only if it has a .env file and a valid mongo database connection url in the file.
cd backend
npm install
npm run start