Giter VIP home page Giter VIP logo

todo-app's Introduction

Todo App

This is a simple todo app built with React, Node.js, Express and Sqlite3. This project demonstrates connecting a React frontend to a Node.js backend.

Screenshot from 2022-12-11 18-35-51

Build the project

1. Build project manually

  • Install dependencies and build the project
cd server && npm install
npm run build
cd ../client && npm install
npm run build
  • Run
    cd server && npm start
    cd client && npm start

Or

2. Build project with npm (I faced bugs with this method)

cd server && npm install && cd ../client && npm install && cd ..
  • Build the project
npm run build
  • Run the project
npm run start

Run Tests

For now, only the server tests are available.

cd server && npm run test

Run the Dockerfile

  • Build the image
docker build -t todo-app .
  • Run the container
docker run -p 5000:5000 -p 3000:3000 -d todo-app

This will start the container in the background.

  • Get inside the container terminal
docker exec -it <container_id> bash

You can get container_id with docker ps in terminal.

  • cd into the server folder
cd /server
  • Run the server
npm run build
npm start

todo-app's People

Contributors

akash5100 avatar dependabot[bot] avatar

Watchers

 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.