Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/happy-machine/timezones
ul-timezones
https://github.com/happy-machine/timezones
Last synced: about 1 month ago
JSON representation
ul-timezones
- Host: GitHub
- URL: https://github.com/happy-machine/timezones
- Owner: happy-machine
- Created: 2020-03-20T21:52:43.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T07:16:21.000Z (almost 2 years ago)
- Last Synced: 2023-03-08T05:37:35.877Z (almost 2 years ago)
- Language: TypeScript
- Size: 4.98 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# timezones
Full stack app to parse timezones and render realtime drag and drop clocks
### Installing the API
**Install dependencies** - inside the folder ./API *npm install*### Installing the UI
**Install dependencies** - inside the folder ./clent *yarn install*
### Setup:
First make .env files in both folders. Copy the .example-env contents into the new .env files.
*make sure* that the port number in ./client/.env REACT_APP_API_PATH is the same as that in ./API/.env SERVER_PORT.Seed the database and test the app:
- *npm run migrate*
- *knex seed:run --knexfile=./CLI/knexfile.js*The seeds in ./CLI will insert a seed user with a sha encoded key into the mySQL db.
To test the app with this user, use the example value for SECRET ("MYSECRETSTRING") in your new ./API/.env. The seeded user can login using username: root and password: "some_hash" in the UI's login form.**Build and start the API** - *npm run dev* or *npm run watch* (hot reloading)
**Build and start the UI** - *yarn start*
### Other API Commands- **Build and run tests** - *npm run test*
- **Run migrations** - *npm run migrate*
- **Rollback migrations** - *npm run rollback*
- **Run test migrations** - *npm run test-migrate*
- **Rollback test migrations** - *npm run test-rollback*
- **Lint** - *npm run lint*