This is a simple NextJS app, for understanding your calories ;). This app is built using these technologies, goes without mention I am using NodeJS 16.13.0 and NPM 8.1.0.
- Server Side
- ExpressJS, with
- CORS, for CORS policies
- express-json, json parser for request
- cookie-parser, cookie handling
- body-parser, request body parser
- express-validator, request body validation
- TypeORM, database ORM
- SQLite, for development
- MySQL, for product but needs to be set in the configuration
- class-transformer, for making changes to the TypeORM entity(model) classes.
- Typescript, faster & safer development
- Nodemon, development and watching changes
- tscpaths, transform typescript path aliases to javascript exact paths.
- eslint & prettier, for code linting and formatting
- moment.js, handling time and date easily.
- lodash, object & array manipulation
- ExpressJS, with
- Client Side
- NextJS 12, react framework with Rust Compiler
- Redux-Thunk, for state management in react
- prop-types, type validation for components
- Antd, react UI framework
- moment.js, handling time and date easily.
- lodash, object & array manipulation
- axios, XHR request handling
Make sure you have NodeJS available on your system, I am using NodeJS 16^
# Installing client dependencies
cd /client
npm install
# Installing server dependencies
cd /server
npm install
First you should start the server before running the app, assuming you have already installed the dependencies as indicated above.
# Running the server
cd /server
npm run dev
# Running the client
# Use another terminal tab, window or tmux
cd client
npm run dev