Coder Social home page Coder Social logo

coffeeproject's Introduction

READ ME!

to start

  • run npm install to make sure you have required depedencies.

.env

  • you need to get .env from me to be able to connect to the DB. template is in .env.example

frontend

Some useful information for frontend.

  • this project use Next.js, routing of this project is directory routing(default of Next.js). in /app directory pages.tsx is your home page. /about = homeurl.com/about /cafes = homeurl.com/cafes

page.tsx in each directory act as index.html

  • by default all of the component of Next.js is server component, this means you can't use hooks in the component nor does client interaction like useState or useReducer. if you want to use those, you need to turn that component into client component by add use client at the TOP of the file.

  • this project use tailwind.

  • if you have asset like images, it goes in /public.

backend

  • database is postgres. host on Vercel.
  • DO NOT RUN seed COMMAND. everytime that you run will cost DB operation to happen, and we have limited amount.

Anton

there are two places that you need to look into. in /app/lib there are two samples file for you to create schema. definitions.ts contains template of your data, it's where you define types of your data.

placeholder-data.js contain real data that you want to insert into DB.

coffeeproject's People

Contributors

sanderkvale avatar ngamsomset avatar stampeiei avatar agrunt avatar marisa-jrn avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.