This website was created for the core review assignment for DevSoc.
The video guide for this website is hosted here: VIDEO
Install pnpm (if not already installed):
$ npm install -g pnpm
Clone the repository:
$ git clone git@github.com:AnirudhM1/Food-Ordering-Website.git
$ # If ssh is not set up,
$ # git clone https://github.com/AnirudhM1/Food-Ordering-Website.git
$ cd Food-Ordering-Website
Install the dependencies
$ pnpm install -C frontend
$ # To install the local server as well,
$ # pnpm install -C backend
Set environment variables:
$ cd frontend
$ cp .env.local.example .env.local
$ # Fill the empty variables
$ # If you are using local mongodb, to start the local instance,
$ # sudo service mongodb start
Start the Next.js application in development mode:
$ pnpm dev
To start a build optimized server:
$ pnpm build
$ pnpm start
To start the local server:
$ # Navigate to the backend folder
$ # cd backend
$ # Add environment variables
$ cp .env.example .env
$ # Fill the empty fields
$ pnpm dev # Reccomended for development
$ # or
$ pnpm start
Made using Next.js and it's serverless functions for api fetching and connecting to mongodb database. Next-Auth library is used to handle authentication Scss is used for Styling.
Made using express to connect to mongodb database.