yoonic/atlas
소개
E-Commerce Backend API in Hapi.js and RethinkDB
비즈니스 및 금융측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalWelcome
Atlas is an E-Commerce Backend (RESTful) API.
It was built with the Yoonic E-Commerce Storefront application in mind.
Why write plugins when you can build your own e-commerce platform?

API Resources
After deploying and running Atlas locally, you can access the Swagger API Documentation by browsing to localhost:8000/docs.
Overall, Atlas provides services for:
- User Accounts
- Contents
- Homepage Banners
- Articles
- Content common to all Product Pages
- ... <-- Whatever you wish :)
- Products
- Collections
- Products
- Contents
- Customers
- ... <-- Your own segmentation engine!
- Carts
- Checkouts
- Orders
Batteries Included
- Mailgun for transactional emails
- Switch Payments for payments
Storefront has a few more tricks up its sleeve ;)
Requirements
- Node.js + NPM (v4.x LTS)
- Rethinkdb
- Yoonic Storefront (optional)
Installation
In order to setup, run and start hacking the app locally you just have to:
- Clone this repository
npm install- Start rethinkdb server and, in a browser, navigate to
http://localhost:8080/#tables(RethinkDB admin) - Create a database named
atlas - In that database, create the following tables:
CartsCheckoutsCollectionsContentsOrdersProductsUsers
- Create a JWT secret key (e.g. using
openssl rand -base64 32) and either:
- Setup the env variable
JWT_KEY - Add it to the configuration file at
config/developmentinapp.jwtKey
- In the directory of the Atlas clone, run
npm run dev
At this point, you should be have your local deploy of Atlas running on http://localhost:8000 and can point your local deploy of Storefront to it.
Admin Account
In order to access Storefront's Admin and perform certain API calls, an Administrator account is required.
- Create an account (either via the API or Storefront)
- In a browser, navigate to
http://localhost:8080/#dataexplorer - Run the following query
r.db('atlas').table('Users').filter({email: '{YOUR_USER_EMAIL}'}).update({status: 'active', scope: ['admin']});(don't forget to replace{YOUR_USER_EMAIL}with the email address of the account you created)
관련 프로젝트 살펴보기
불러오는 중…