Skip to content

Zhusufeng/auto-amigo-mongo

Repository files navigation

Auto Amigo Mongo

You can check it out at https://auto-amigo-mongo.vercel.app/

About

This is a mini version of my project Auto Amigo. I made it to refresh my memory on MongoDB and Mongoose and to try out some tech I haven't used before.

This is a Next.js project bootstrapped with create-next-app. I referenced the MongoDB with Mongoose example, but I am using TypeScript and leveraging SWR more.

This project is using Next 13, but to get started quicker, it uses the pages API (instead of the new app router).

Tech

  • React, Next.js, Vercel
  • MongoDB, Mongoose, Mongo Atlas
  • TypeScript
  • SWR
  • Axios
  • Ant Design

Getting Started

  1. Get a copy of the repo locally
  git clone https://github.com/Zhusufeng/auto-amigo-mongo.git
  1. Install the dependencies
  npm i
  1. Get MongoDB up and running.
    1. If you don't have a MongoDB and have Docker, you get an instance running using the following command:
      docker run -d -p 27017:27017 --name my-mongo-db mongo
  2. Create a database in your MongoDB. I used the GUI, MongoDB Compass, and named mine "auto-amigo-mongo".
  3. Create a copy of the file env.local.example and rename it env.local. Fill out the environment variables, including your MongoDB connection string.
  4. Run the development server.
  npm run dev
  1. Go to your browser to view it at http://localhost:3000/

About

Auto Amigo is your car friend. The MongoDB mini version.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published