cmanager is competition management service, made with React, Koa.js and MongoDB.
used...
nodejs v12.13.0
npm 6.12.0
yarn 1.19.1
on progressπ
you should run backend and frontend server respectively.
- make .env file containing DB informations in backend directory.
//YOURDIRECTORY\cmanager\backend\.env
PORT=YOUR_PORT
MONGO_URI=YOUR_DB_URL
JWT_SECRET=YOUR_SECRET_KEY
- move into frontend directory then run the following code.
cd YOURDIRECTORY\cmanager\frontend
yarn start
or
npm install
npm start
- move into backend directory then run the following code.
cd YOURDIRECTORY\cmanager\backend
yarn start:dev
example website will be presented on browser. or visit localhost:3000
-
trouble shotting
this project uses styled-components.
if you want change style or theme, check out styled-components in each file in
YOUR_DIRECTORY\cmanager\frontend\src\components
src
βββ components // each components styled with 'styled-components'
β βββ auth //components used when authorization happened
β βββ base
β βββ common // components used globally
βββ containers // manages redux-linked components.
β βββ auth
β βββ common
βββ lib
β βββ api // connects frontend and backend.
β βββ styles // to use basic colors easily, defined color codes as object.
βββ pages // page components
βββ modules // manages reducers.
backend
β
src
βββ api // Schema verifications and http methods.
β βββ auth
β βββ posts
βββ lib // middlewares that verificate tokens.
βββ models // Schema, methods...
WE NEED YOUR HELP! wanna contribute on this project? check out contributing guidline.