Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chiragsaini/sequelize
https://github.com/chiragsaini/sequelize
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/chiragsaini/sequelize
- Owner: ChiragSaini
- Created: 2022-01-06T05:05:00.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-06T09:24:24.000Z (about 3 years ago)
- Last Synced: 2024-11-18T08:12:30.631Z (3 months ago)
- Language: JavaScript
- Size: 335 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Steps to Run the Project
- Prerequisite: Redis, Postgres and nodejs(with npm or yarn)
1. Run ```yarn``` to install the dependencies.
2. Create a db in postgres according to your databse using command ```createdb db_development```
3. Update the env variables accoridng to your postgres user, password and database name.
4. Install Sequelize CLI ```npm i -g sequelize-cli```
5. Run ```yarn migrate``` to sync changes to db.
6. Run ```yarn seed``` to add seed data to db.
7. Now your setup should be done.
8. Run ```yarn dev``` to start dev server
9. Hit API Endpoint /search/:you_state_name to get that state data.
10. Once the data is retrieved , it is cached within redis with time to live for 60 seconds.