UCLA CS35L Fall 2023 Group Project
Professor Paul Eggert
Team JENCS
- Tanisaka, Nanako
- Deng, Sylvia
- An, Eunsoo
- Omomo, Cain
- Houston, Jarod
TasteUCLA uses a MERN stack, using MongoDB, Express, React.js, and Node.js. We also use MongooseJS, Vite, and TailwindCSS.
$ git clone https://github.com/JENCS/TasteUCLA
To allow the backend server to connect to MongoDB, we must include a file named: /TasteUCLA/backend/.env
in the root of the backend server. First, create two access tokens for the access and refresh tokens you will put into your ".env" file to connect to the MongoDB database by running the following command twice in a node environment and saving the two outputs:
> require('crypto').randomBytes(64).toString('hex')
Insert into your the ".env" file the database URI of your MongoDB server and the two tokens generated from the previous step:
DATABASE_URI=<MONGODB URI HERE>
PORT=5555
ACCESS_TOKEN_SECRET=<TOKEN 1 HERE>
REFRESH_TOKEN_SECRET=<TOKEN 2 HERE>
$ cd TasteUCLA/frontend
$ npm install
$ npm run build
$ npm run preview
$ cd TasteUCLA/backend
$ npm install
$ npm run start
Connect to the frontend server at
http://localhost:4173
Connect to the backend server at
http://localhost:5555