Giter Club home page Giter Club logo

cool-todo's Introduction

cool-todo

A very simple and cool todo app for demonstration of MERN Stack

App is still under development!

Development

To run the project in development mode, here is a quick recipe.

git clone https://github.com/ar124official2019/cool-todo
cd cool-todo
git checkout dev # Make sure you are in `dev`elopment branch

# Install Node Modules
cd client
npm install

cd ../server
npm install

docker-compose up # start all serves

# Once mysql container has performed installations and is stable,
#   migrate databases
#   * Use another terminal for following task, keep docker stack running
docker-compose exec -it server /bin/bash
    npx sequelize-cli db:migrate

Once all containers are up and running, you should be able to open app at http://localhost:4200

Google OAuth Login

To enable Google OAuth Login, create a file named google.env in server directory - and specify Google Client ID and Google Client Secret as following template.

Of-course this will require you to restart the server container as well.

> server/google.env

GOOGLE_CLIENT_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Know Issues

If you are on Windows, node modules installed from host Windows machine may not work in containers, while development. You'll either use WSL or use a container to install the modules as following.

cd cool-todo # Make sure you're arleady in app main directory
docker run --rm -itv .:/app node:18 /bin/bash -c "cd /app/client && npm install && cd /app/server && npm install"

cool-todo's People

Contributors

ar124officialwd 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.