Code Monkey home page Code Monkey logo

todo-list's Introduction

TODO-LIST APPLICATION

Runs in Nodejs for server and React native for client

Setting up the server

Install nodejs 18.13.0

If using node version manager, execute this command:

nvm install 18.13.0
nvm use 18

If not using node version manager, download using this link

Install mysql database

You can download mysql in this link

** Dont forget to create a database for this application

Install yarn and install dependencies

To install yarn - package manager

npm install -g yarn

To install project dependencies

cd <path-to-project>
yarn install

Update environment variable setup

Edit .env file and update the app settings, mysql settings and security settings

Run the server

To run the server

    npm run start

To check for lint errors, and auto-fix if possible

    npm run lintfix

To run test scripts

    npm run test

Setting up the react-native client

In a new terminal go to the client folder

cd <path-to-project>/client

Install dependencies

Install expo

npm install -g expo-cli

To install project dependencies

yarn install

Update config

Update the config file in client/app/config/settings Set the baseUrl to the url of the nodejs application

Run the client application

To run on web

npm run web

To run on ios simulator

npm run ios

To run on android simulator

npm run android

If you encounter digital-envelope error you may need to set back to legacy

For windows

$env:NODE_OPTIONS = "--openssl-legacy-provider"

For linux/mac

export NODE_OPTIONS=--openssl-legacy-provider

todo-list's People

Contributors

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