"UserRestaurants" manages your delicious restaurant list.
- Sign up
- Login by (username & password) or oauth2
- Display restaurants on multiple pages
- Search restaurants by name or category
- Reorder restaurants
- Flash messages
- Create a new restaurant
- Check restaurant information
- Edit restaurant information
- Delete restaurant information
- Node.js v18
- MySQL server v8
- Clone the repository
git clone https://github.com/LoS-Light/UserRestaurants.git
- Move to the UserRestaurants directory
cd UserRestaurants
- Restore the dependencies
npm install
- Create example environment configs
npm run env:create
- Launch Mysql Server
Launch your mysql server, and edit environment config files in folder "env".
There are two config files in it, ".env.development.local" and ".env.production.local".
Change the "DB_MYSQL_USERNAME", "DB_MYSQL_PASSWORD", "SESSION_SECRET" to match your mysql server connection settings.
- Create a new database and seed test data.
npm run db:create
npm run seed
- Launch the application
Run app in development mode
npm run dev
or
Run app in production mode
npm run build
npm run start
In your browser, open http://localhost:3000 to see the website.
- Login by oauth2 (Optional)
Edit environment config files in folder "env".
There are two config files in it, ".env.development.local" and ".env.production.local".
Change items below to match your account settings.
OAUTH2_FACEBOOK_CLIENT_ID
OAUTH2_FACEBOOK_CLIENT_SECRET
OAUTH2_GOOGLE_CLIENT_ID
OAUTH2_GOOGLE_CLIENT_SECRET
https://userrests.loslight.com
This project is licensed under the MIT License - see the LICENSE.md file for details


