Skip to content

Rule of Thumb is a full-stack example project built with TypeScript and Next.js, backend with MongoDB and GridFS

Notifications You must be signed in to change notification settings

jorgevrgs/rule-of-thumb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rule of Thumb

CI Playwright Tests

Rule of Thumb is a full-stack example project built with TypeScript and Next.js, backend with MongoDB and GridFS.

preview

Technologies

Docker GitHub Actions MongoDB Next JS NodeJS React React Query TailwindCSS TypeScript Vercel

Getting Started

Start the server using Docker or lift the server locally. First step install dependencies:

npm ci

Docker

cp .env.example env.docker # Edit the variables

npm run serve # Start a Docker container
npm run seed  # Populate the MongoDB database and load the images to GridFS
npm run stop  # Stop the Docker containers

Local/Remote Database

For a MongoDB running either in localhost or remotely (i.e. Mongo Atlas):

cp .env.local.example env.local # Edit the variables

# Development
npm run dev

# Production
npm run build
npm start

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.