Be sure to have NodeJS and PNPM (or NPM) installed on your work machine. To check if you have NodeJS installed as well as PNPM or NPM run the following commands.
node --version
pnpm --version
OR
npm --version
PNPM is recommended as the package manager. To install PNPM globally via NPM run the following.
npm install -g pnpm
Once you have NodeJS and PNPM installed, you can go on to install the dependencies. To do that, run the following command from the root of the project
pnpm install --save
This will install all dependencies used for building the server. Upon completion run the following command to install the client dependencies.
cd client && pnpm install --save
When all dependencies are installed, navigate back to the project root and run the following to run the project locally.
pnpm run dev
This will spin up the server on http://localhost:3000 and the client on http://localhost:8080. To run the server or client independently, run the following respective commands
pnpm run server
pnpm run client
As of this moment, only the meal routes, /api/meals are fully functional. Other routes, /api/testimonials and /api/users are still in development.
Presently, the following routes exist in the project
- /
- /meals
- /faq
- /contact
- /admin/dashboard
- /login
- /404
Remember to affix the various development URLs and PORT.
- Authentication
- User Profiles and actions
- Admin Profiles and actions