Skip to content

JENCS/TasteUCLA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TasteUCLA

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.

Setup

Download the repository

$ git clone https://github.com/JENCS/TasteUCLA

Setup the backend and database server

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>

Launch the frontend server

$ cd TasteUCLA/frontend
$ npm install
$ npm run build
$ npm run preview

Launch the backend server

$ 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

Contributors