roflanKisel / todo-web-app

Simple Web App with Express, React, Next.js and PostgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Todo Web App

Simple Web App with Express, React, Next.js and PostgreSQL

And also:

πŸ”¨ Required Tools

  • npm or yarn
  • docker
  • docker-compose

πŸ”§ Setting up

This article will show you how to setup environment for development

☁️ Cloning repository

You need to clone this repository

Using HTTPS

git clone https://github.com/roflanKisel/todo-web-app.git

Using SSH

git clone git@github.com:roflanKisel/todo-web-app.git

πŸ“¦ Installing packages

You need to install packages for db, web-api and web

Using npm

cd db && npm install
cd web-api && npm install
cd web && npm install

Using yarn

cd db && yarn
cd web-api && yarn
cd web && yarn

πŸš€ Starting containers with database and logger

You can easily run containers with a simple command

Using npm

npm run dev

Using yarn

yarn dev

🌱 Seeding database

To start using database you need to initialize it and fill it with data

Using npm

npm run seed

Using yarn

yarn seed

πŸ’Ό Starting services for development purposes

Web API server and Web (React App + Server) can be started by the commands below

Using npm

cd web-api && npm start
cd web && npm run dev

Using yarn

cd web-api && yarn start
cd web && yarn dev

Go to localhost:3000 in your browser and try it out! πŸ’₯


πŸ““ Note

  • PostgreSQL - localhost:5432
  • Logger - localhost:1337
  • Web API - localhost:8080
  • Web - localhost:3000

About

Simple Web App with Express, React, Next.js and PostgreSQL


Languages

Language:JavaScript 98.9%Language:Dockerfile 0.9%Language:Shell 0.2%